All Classes |Grouped Classes |Index

Class CL_BlockAllocated

Class with operator new/delete overloads for CL_BlockAllocator . More...

Derived from:

None

Derived by:

None

Group:

System (Core)

#include <ClanLib/core.h>

Class Members:

Operations:

operator new

operator delete

Detailed description:

To use this class, derive your class from CL_BlockAllocated . Then, to allocate your class, use the following operator new syntax:

Before freeing up the memory using CL_BlockAllocator::free() you have to delete the object first using operator delete. If you fail to do this the destructor will not get called.