IRC_SERVER
By @hyunjunk (hyunjun2372@gmail.com)
|
Base class for memory pooling with new/delete operator overloading. More...
#include <FlexibleMemoryPoolingBase.hpp>
Public Member Functions | |
void * | operator new (size_t size) |
void | operator delete (void *ptr) |
void * | operator new (size_t size, void *ptr) |
void | operator delete (void *ptr, size_t size) |
Private Member Functions | |
void * | operator new[] (size_t size) |
Unavailable new/delete for array. | |
void | operator delete[] (void *ptr) |
Unavailable new/delete for array. | |
Static Private Attributes | |
static FlexibleFixedMemoryPool< DerivedType, MinNumDataPerChunk > & | mPool = *(new FlexibleFixedMemoryPool<DerivedType, MinNumDataPerChunk>) |
Use reference for prevent the error of sizeof to incomplete-type T Reference : https://stackoverflow.com/questions/47462707/static-class-template-member-invalid-application-of-sizeof-to-incomplete-type. | |
Base class for memory pooling with new/delete operator overloading.
How to use:
DerivedType | Type of the derived class |
MinNumDataPerChunk | Minimum number of data to allocate per chunk |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Unavailable new/delete for array.
|
private |
Unavailable new/delete for array.
|
staticprivate |
Use reference for prevent the error of sizeof to incomplete-type T Reference : https://stackoverflow.com/questions/47462707/static-class-template-member-invalid-application-of-sizeof-to-incomplete-type.