|
Memory Manager
C4Memory.h
class MemoryTheMemory class template is used to cause objects to be allocated in a dedicated heap.
Definition
Template Parameters
Constructor
Memory class can only exist as a base class for another class type.
Description
The Memory class template is used as a base class for objects that are to be allocated in a dedicated heap. As an example, if all instances of a class Foo should be allocated in a dedicated heap for that class, then Foo should inherit from Memory<Foo> as follows.
Foo to be allocated in the heap associated with the Memory<Foo> base class whenever the new operator is used to create them. The heap itself needs to be defined in the program as follows.
Heap class.)
See Also
Heap
|