48#if __cplusplus >= 201103L
52#define __cpp_lib_incomplete_container_elements 201505
53#if __cplusplus >= 201103L
54# define __cpp_lib_allocator_is_always_equal 201411
57namespace std _GLIBCXX_VISIBILITY(default)
59_GLIBCXX_BEGIN_NAMESPACE_VERSION
71 typedef size_t size_type;
72 typedef ptrdiff_t difference_type;
73 typedef void* pointer;
74 typedef const void* const_pointer;
75 typedef void value_type;
77 template<
typename _Tp1>
81#if __cplusplus >= 201103L
88 template<
typename _Up,
typename... _Args>
90 construct(_Up* __p, _Args&&... __args)
92 { ::new((
void *)__p) _Up(std::forward<_Args>(__args)...); }
94 template<
typename _Up>
110 template<
typename _Tp>
114 typedef size_t size_type;
115 typedef ptrdiff_t difference_type;
116 typedef _Tp* pointer;
117 typedef const _Tp* const_pointer;
118 typedef _Tp& reference;
119 typedef const _Tp& const_reference;
120 typedef _Tp value_type;
122 template<
typename _Tp1>
126#if __cplusplus >= 201103L
143#if __cplusplus >= 201103L
148 template<
typename _Tp1>
165 template<
typename _T1,
typename _T2>
171 template<
typename _T1,
typename _T2>
173 operator!=(
const allocator<_T1>&,
const allocator<_T2>&)
179 template<
typename _Tp>
180 class allocator<const _Tp>
183 typedef _Tp value_type;
184 template<
typename _Up> allocator(
const allocator<_Up>&) { }
187 template<
typename _Tp>
188 class allocator<volatile _Tp>
191 typedef _Tp value_type;
192 template<
typename _Up> allocator(
const allocator<_Up>&) { }
195 template<
typename _Tp>
196 class allocator<const volatile _Tp>
199 typedef _Tp value_type;
200 template<
typename _Up> allocator(
const allocator<_Up>&) { }
207#if _GLIBCXX_EXTERN_TEMPLATE
208 extern template class allocator<char>;
209 extern template class allocator<wchar_t>;
213#undef __allocator_base
216 template<
typename _Alloc,
bool = __is_empty(_Alloc)>
218 {
static void _S_do_it(_Alloc&, _Alloc&) _GLIBCXX_NOEXCEPT { } };
220 template<
typename _Alloc>
221 struct __alloc_swap<_Alloc, false>
224 _S_do_it(_Alloc& __one, _Alloc& __two) _GLIBCXX_NOEXCEPT
233 template<
typename _Alloc,
bool = __is_empty(_Alloc)>
237 _S_do_it(
const _Alloc&,
const _Alloc&)
241 template<
typename _Alloc>
242 struct __alloc_neq<_Alloc, false>
245 _S_do_it(
const _Alloc& __one,
const _Alloc& __two)
246 {
return __one != __two; }
249#if __cplusplus >= 201103L
250 template<
typename _Tp,
bool
251 = __or_<is_copy_constructible<typename _Tp::value_type>,
252 is_nothrow_move_constructible<typename _Tp::value_type>>::value>
253 struct __shrink_to_fit_aux
254 {
static bool _S_do_it(_Tp&)
noexcept {
return false; } };
256 template<
typename _Tp>
257 struct __shrink_to_fit_aux<_Tp, true>
260 _S_do_it(_Tp& __c)
noexcept
265 _Tp(__make_move_if_noexcept_iterator(__c.begin()),
266 __make_move_if_noexcept_iterator(__c.end()),
267 __c.get_allocator()).swap(__c);
279_GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
The standard allocator, as per [20.4].
An allocator that uses global new, as per [20.4].