44 #define _ALLOCATOR_H 1 48 #if __cplusplus >= 201103L 52 namespace std _GLIBCXX_VISIBILITY(default)
54 _GLIBCXX_BEGIN_NAMESPACE_VERSION
66 typedef size_t size_type;
67 typedef ptrdiff_t difference_type;
68 typedef void* pointer;
69 typedef const void* const_pointer;
70 typedef void value_type;
72 template<
typename _Tp1>
76 #if __cplusplus >= 201103L 91 template<
typename _Tp>
95 typedef size_t size_type;
96 typedef ptrdiff_t difference_type;
98 typedef const _Tp* const_pointer;
99 typedef _Tp& reference;
100 typedef const _Tp& const_reference;
101 typedef _Tp value_type;
103 template<
typename _Tp1>
107 #if __cplusplus >= 201103L 118 template<
typename _Tp1>
126 template<
typename _T1,
typename _T2>
129 _GLIBCXX_USE_NOEXCEPT
132 template<
typename _Tp>
135 _GLIBCXX_USE_NOEXCEPT
138 template<
typename _T1,
typename _T2>
141 _GLIBCXX_USE_NOEXCEPT
144 template<
typename _Tp>
147 _GLIBCXX_USE_NOEXCEPT
154 #if _GLIBCXX_EXTERN_TEMPLATE 160 #undef __allocator_base 163 template<
typename _Alloc,
bool = __is_empty(_Alloc)>
165 {
static void _S_do_it(_Alloc&, _Alloc&) _GLIBCXX_NOEXCEPT { } };
167 template<
typename _Alloc>
168 struct __alloc_swap<_Alloc, false>
171 _S_do_it(_Alloc& __one, _Alloc& __two) _GLIBCXX_NOEXCEPT
180 template<
typename _Alloc,
bool = __is_empty(_Alloc)>
184 _S_do_it(
const _Alloc&,
const _Alloc&)
188 template<
typename _Alloc>
189 struct __alloc_neq<_Alloc, false>
192 _S_do_it(
const _Alloc& __one,
const _Alloc& __two)
193 {
return __one != __two; }
196 #if __cplusplus >= 201103L 197 template<
typename _Tp,
bool 198 = __or_<is_copy_constructible<typename _Tp::value_type>,
199 is_nothrow_move_constructible<typename _Tp::value_type>>::value>
200 struct __shrink_to_fit_aux
201 {
static bool _S_do_it(_Tp&) noexcept {
return false; } };
203 template<
typename _Tp>
204 struct __shrink_to_fit_aux<_Tp, true>
207 _S_do_it(_Tp& __c) noexcept
212 _Tp(__make_move_if_noexcept_iterator(__c.begin()),
213 __make_move_if_noexcept_iterator(__c.end()),
214 __c.get_allocator()).swap(__c);
226 _GLIBCXX_END_NAMESPACE_VERSION
An allocator that uses global new, as per [20.4].This is precisely the allocator defined in the C++ S...
The standard allocator, as per [20.4].
ISO C++ entities toplevel namespace is std.