Panda3D
|
This is our own Panda specialization on the default STL allocator. More...
#include "pallocator.h"
Classes | |
struct | rebind |
Public Types | |
typedef const Type * | const_pointer |
typedef const Type & | const_reference |
typedef Type * | pointer |
typedef Type & | reference |
typedef std::allocator< Type >::size_type | size_type |
Public Member Functions | |
template<class U > | |
pallocator_single (const pallocator_single< U > ©) noexcept | |
pallocator_single (TypeHandle type_handle) noexcept | |
Type * | allocate (size_type n, const void *hint=0) |
void | deallocate (Type *p, size_type n) |
Public Attributes | |
TypeHandle | _type_handle |
This is our own Panda specialization on the default STL allocator.
Its main purpose is to call the hooks for MemoryUsage to properly track STL- allocated memory.
pvector, pmap, etc. are all defined in this directory to use a pallocator.
pallocator actually comes it two flavors now: pallocator_single, which can only allocate single instances of an object, and pallocator_array, which can allocate arrays of objects.
Definition at line 45 of file pallocator.h.