|
@@ -46,10 +46,10 @@ class pallocator_single : public std::allocator<Type> {
|
|
|
public:
|
|
public:
|
|
|
// Nowadays we cannot implicitly inherit typedefs from base classes in a
|
|
// Nowadays we cannot implicitly inherit typedefs from base classes in a
|
|
|
// template class; we must explicitly copy them here.
|
|
// template class; we must explicitly copy them here.
|
|
|
- typedef typename std::allocator<Type>::pointer pointer;
|
|
|
|
|
- typedef typename std::allocator<Type>::reference reference;
|
|
|
|
|
- typedef typename std::allocator<Type>::const_pointer const_pointer;
|
|
|
|
|
- typedef typename std::allocator<Type>::const_reference const_reference;
|
|
|
|
|
|
|
+ typedef Type *pointer;
|
|
|
|
|
+ typedef Type &reference;
|
|
|
|
|
+ typedef const Type *const_pointer;
|
|
|
|
|
+ typedef const Type &const_reference;
|
|
|
typedef typename std::allocator<Type>::size_type size_type;
|
|
typedef typename std::allocator<Type>::size_type size_type;
|
|
|
|
|
|
|
|
INLINE pallocator_single(TypeHandle type_handle) noexcept;
|
|
INLINE pallocator_single(TypeHandle type_handle) noexcept;
|
|
@@ -59,9 +59,9 @@ public:
|
|
|
INLINE pallocator_single(const pallocator_single<U> ©) noexcept :
|
|
INLINE pallocator_single(const pallocator_single<U> ©) noexcept :
|
|
|
_type_handle(copy._type_handle) { }
|
|
_type_handle(copy._type_handle) { }
|
|
|
|
|
|
|
|
- INLINE Type *allocate(size_type n, std::allocator<void>::const_pointer hint = 0)
|
|
|
|
|
|
|
+ INLINE Type *allocate(size_type n, const void *hint = 0)
|
|
|
RETURNS_ALIGNED(MEMORY_HOOK_ALIGNMENT);
|
|
RETURNS_ALIGNED(MEMORY_HOOK_ALIGNMENT);
|
|
|
- INLINE void deallocate(pointer p, size_type n);
|
|
|
|
|
|
|
+ INLINE void deallocate(Type *p, size_type n);
|
|
|
|
|
|
|
|
template<class U> struct rebind {
|
|
template<class U> struct rebind {
|
|
|
typedef pallocator_single<U> other;
|
|
typedef pallocator_single<U> other;
|
|
@@ -75,10 +75,10 @@ class pallocator_array : public std::allocator<Type> {
|
|
|
public:
|
|
public:
|
|
|
// Nowadays we cannot implicitly inherit typedefs from base classes in a
|
|
// Nowadays we cannot implicitly inherit typedefs from base classes in a
|
|
|
// template class; we must explicitly copy them here.
|
|
// template class; we must explicitly copy them here.
|
|
|
- typedef typename std::allocator<Type>::pointer pointer;
|
|
|
|
|
- typedef typename std::allocator<Type>::reference reference;
|
|
|
|
|
- typedef typename std::allocator<Type>::const_pointer const_pointer;
|
|
|
|
|
- typedef typename std::allocator<Type>::const_reference const_reference;
|
|
|
|
|
|
|
+ typedef Type *pointer;
|
|
|
|
|
+ typedef Type &reference;
|
|
|
|
|
+ typedef const Type *const_pointer;
|
|
|
|
|
+ typedef const Type &const_reference;
|
|
|
typedef typename std::allocator<Type>::size_type size_type;
|
|
typedef typename std::allocator<Type>::size_type size_type;
|
|
|
|
|
|
|
|
INLINE pallocator_array(TypeHandle type_handle = TypeHandle::none()) noexcept;
|
|
INLINE pallocator_array(TypeHandle type_handle = TypeHandle::none()) noexcept;
|
|
@@ -88,9 +88,9 @@ public:
|
|
|
INLINE pallocator_array(const pallocator_array<U> ©) noexcept :
|
|
INLINE pallocator_array(const pallocator_array<U> ©) noexcept :
|
|
|
_type_handle(copy._type_handle) { }
|
|
_type_handle(copy._type_handle) { }
|
|
|
|
|
|
|
|
- INLINE Type *allocate(size_type n, std::allocator<void>::const_pointer hint = 0)
|
|
|
|
|
|
|
+ INLINE Type *allocate(size_type n, const void *hint = 0)
|
|
|
RETURNS_ALIGNED(MEMORY_HOOK_ALIGNMENT);
|
|
RETURNS_ALIGNED(MEMORY_HOOK_ALIGNMENT);
|
|
|
- INLINE void deallocate(pointer p, size_type n);
|
|
|
|
|
|
|
+ INLINE void deallocate(Type *p, size_type n);
|
|
|
|
|
|
|
|
template<class U> struct rebind {
|
|
template<class U> struct rebind {
|
|
|
typedef pallocator_array<U> other;
|
|
typedef pallocator_array<U> other;
|