19 #ifndef INCLUDED_RTL_ALLOCATOR_HXX
20 #define INCLUDED_RTL_ALLOCATOR_HXX
46 typedef const T* const_pointer;
48 typedef const T& const_reference;
49 typedef ::std::size_t size_type;
50 typedef ::std::ptrdiff_t difference_type;
56 typedef Allocator<U> other;
60 pointer address (reference value)
const
66 const_pointer address (const_reference value)
const
91 return size_type(-1)/
sizeof(T);
117 return reinterpret_cast<pointer
>(
128 #if defined HAVE_CXX11_PERFECT_FORWARDING
129 template<
typename... Args >
130 void construct (pointer p, Args &&... value)
132 new ((
void*)p)T(std::forward< Args >(value)...);
135 void construct (pointer p,
const T& value)
137 new ((
void*)p)T(value);
142 void destroy (pointer p)
154 template<
class T,
class U>
inline bool operator ==(
161 template<
class T,
class U>
175 template<
class T,
class U>
176 inline ::rtl::Allocator<U> & __stl_alloc_rebind (::rtl::Allocator<T> & a, U
const *)
178 return (::rtl::Allocator<U>&)(a);