28 #if !defined INCLUDED_RTL_ALLOCATOR_HXX
29 #define INCLUDED_RTL_ALLOCATOR_HXX
31 #if ! defined(_SAL_TYPES_H_)
34 #if ! defined(_RTL_ALLOC_H_)
60 typedef const T* const_pointer;
62 typedef const T& const_reference;
63 typedef ::std::size_t size_type;
64 typedef ::std::ptrdiff_t difference_type;
70 typedef Allocator<U> other;
74 pointer address (reference value)
const
80 const_pointer address (const_reference value)
const
105 return size_type(-1)/
sizeof(T);
131 return reinterpret_cast<pointer
>(
142 void construct (pointer p,
const T& value)
144 new ((
void*)p)T(value);
148 void destroy (pointer p)
160 template<
class T,
class U>
inline bool operator ==(
167 template<
class T,
class U>
181 template<
class T,
class U>
182 inline ::rtl::Allocator<U> & __stl_alloc_rebind (::rtl::Allocator<T> & a, U
const *)
184 return (::rtl::Allocator<U>&)(a);