AlignedBlockAllocator.h¶
-
template<typename
T>
classCubism::AlignedBlockAllocator¶ Simple aligned memory block allocator.
- Template Parameters
T: Data type of single block element
Public Functions
-
inline DataType *
allocate(size_t &bytes) const¶ Allocate block memory.
The actual allocated memory may be larger than the requested number of bytes.
- Return
Pointer to first block element
- Parameters
bytes: Minimum number of bytes
-
inline void
deallocate(DataType *block) const¶ Deallocate block memory.
- Parameters
block: Pointer to first block element