"L. Spiro Engine"
|
Provides a default allocator shared among all instances of CMap classes. More...
#include <LSTLMapBase.h>
Static Public Attributes | |
static CAllocator * | m_paDefaultAllocator |
Static Protected Attributes | |
static CAllocator | m_aAllocator |
Provides a default allocator shared among all instances of CMap classes.
Class CMapBase Description: Provides a default allocator shared among all instances of CMap classes.
CAllocator lstl::CMapBase::m_aAllocator [static, protected] |
The default allocator if none are supplied.
Modifiable pointer to a default allocator used by all map objects that do not explicitly allow using a specific allocator. Must never be set to NULL. Should only be changed once, before any allocations are ever made. If a map allocates from the default allocator and then the default is changed, the map will not be able to free its memory unless the default is changed back. Normally you just create an allocator at the beginning, set it as the default, and then let all the vectors work off that.