35 #if !defined(USE_STL_ALLOCATOR) || defined(CPPPARSER)
39 #define pallocator_single std::allocator
40 #define pallocator_array std::allocator
49 typedef Type *pointer;
50 typedef Type &reference;
51 typedef const Type *const_pointer;
52 typedef const Type &const_reference;
53 typedef typename std::allocator<Type>::size_type size_type;
60 _type_handle(copy._type_handle) { }
62 INLINE Type *allocate(size_type n,
const void *hint = 0)
63 RETURNS_ALIGNED(MEMORY_HOOK_ALIGNMENT);
64 INLINE
void deallocate(Type *p, size_type n);
78 typedef Type *pointer;
79 typedef Type &reference;
80 typedef const Type *const_pointer;
81 typedef const Type &const_reference;
82 typedef typename std::allocator<Type>::size_type size_type;
89 _type_handle(copy._type_handle) { }
91 INLINE Type *allocate(size_type n,
const void *hint = 0)
92 RETURNS_ALIGNED(MEMORY_HOOK_ALIGNMENT);
93 INLINE
void deallocate(Type *p, size_type n);
102 #include "pallocator.T"
TypeHandle is the identifier used to differentiate C++ class types.
This is our own Panda specialization on the default STL allocator.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.