45class pallocator_single :
public std::allocator<Type> {
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;
55 INLINE pallocator_single(
TypeHandle type_handle)
noexcept;
59 INLINE pallocator_single(
const pallocator_single<U> ©) noexcept :
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);
67 typedef pallocator_single<U> other;
74class pallocator_array :
public std::allocator<Type> {
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;
84 INLINE pallocator_array(
TypeHandle type_handle = TypeHandle::none())
noexcept;
88 INLINE pallocator_array(
const pallocator_array<U> ©) noexcept :
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);
96 typedef pallocator_array<U> other;