37template <
typename DerivedType,
size_t MinNumDataPerChunk = 64>
43 Assert(size ==
sizeof(DerivedType));
44 return mPool.Allocate();
49 mPool.Deallocate(
static_cast<DerivedType*
>(ptr));
54 Assert(size ==
sizeof(DerivedType));
66 void*
operator new[](
size_t size);
69 void operator delete[](
void* ptr);
79template <
typename DerivedType,
size_t MinNumDataPerChunk>
#define FORCEINLINE
Definition AttributeDefines.hpp:55
#define Assert(exp)
Implemented as direct interrupt to avoid dirtying the call stack with assert function when debugging.
Definition MacroDefines.hpp:30
A memory pool that can allocate flexible number of data.
Definition FlexibleFixedMemoryPool.hpp:25
Base class for memory pooling with new/delete operator overloading.
Definition FlexibleMemoryPoolingBase.hpp:39
static FlexibleFixedMemoryPool< DerivedType, MinNumDataPerChunk > & mPool
Use reference for prevent the error of sizeof to incomplete-type T Reference : https://stackoverflow....
Definition FlexibleMemoryPoolingBase.hpp:76
Definition ControlBlock.hpp:7