Eneboo - Documentación para desarrolladores
|
Enable the use of one heap for all class memory allocation. Más...
#include <perclassheap.h>
Enable the use of one heap for all class memory allocation.
This class contains one instance of the SuperHeap argument. The example below shows how to make a subclass of Foo that uses a FreelistHeap to manage its memory, overloading operators new and delete.
class NewFoo : public Foo, PerClassHeap<FreelistHeap<mallocHeap> > {};