48#if __cplusplus >= 201103L
52#define __cpp_lib_incomplete_container_elements 201505
54namespace std _GLIBCXX_VISIBILITY(default)
56_GLIBCXX_BEGIN_NAMESPACE_VERSION
76 typedef size_t size_type;
79#if __cplusplus <= 201703L
84 template<
typename _Tp1>
89#if __cplusplus >= 201103L
96#if __cplusplus > 201703L
102 template<
typename _Up>
121 template<
typename _Tp>
125 typedef _Tp value_type;
126 typedef size_t size_type;
129#if __cplusplus <= 201703L
131 typedef _Tp* pointer;
132 typedef const _Tp* const_pointer;
133 typedef _Tp& reference;
134 typedef const _Tp& const_reference;
136 template<
typename _Tp1>
141#if __cplusplus >= 201103L
158#if __cplusplus >= 201103L
163 template<
typename _Tp1>
167#if __cpp_constexpr_dynamic_alloc
172#if __cplusplus > 201703L
177#ifdef __cpp_lib_is_constant_evaluated
179 return static_cast<_Tp*
>(::operator
new(__n *
sizeof(_Tp)));
184 [[__gnu__::__always_inline__]]
186 deallocate(_Tp* __p,
size_t __n)
188#ifdef __cpp_lib_is_constant_evaluated
191 ::operator
delete(__p);
203#if __cpp_impl_three_way_comparison < 201907L
212 template<
typename _T1,
typename _T2>
218#if __cpp_impl_three_way_comparison < 201907L
219 template<
typename _T1,
typename _T2>
220 inline _GLIBCXX20_CONSTEXPR
bool
221 operator!=(
const allocator<_T1>&,
const allocator<_T2>&)
228 template<
typename _Tp>
229 class allocator<const _Tp>
232 typedef _Tp value_type;
233 template<
typename _Up> allocator(
const allocator<_Up>&) { }
236 template<
typename _Tp>
237 class allocator<volatile _Tp>
240 typedef _Tp value_type;
241 template<
typename _Up> allocator(
const allocator<_Up>&) { }
244 template<
typename _Tp>
245 class allocator<const volatile _Tp>
248 typedef _Tp value_type;
249 template<
typename _Up> allocator(
const allocator<_Up>&) { }
256#if _GLIBCXX_EXTERN_TEMPLATE
257 extern template class allocator<char>;
258 extern template class allocator<wchar_t>;
262#undef __allocator_base
265 template<
typename _Alloc,
bool = __is_empty(_Alloc)>
267 {
static void _S_do_it(_Alloc&, _Alloc&) _GLIBCXX_NOEXCEPT { } };
269 template<
typename _Alloc>
270 struct __alloc_swap<_Alloc, false>
273 _S_do_it(_Alloc& __one, _Alloc& __two) _GLIBCXX_NOEXCEPT
282 template<
typename _Alloc,
bool = __is_empty(_Alloc)>
286 _S_do_it(
const _Alloc&,
const _Alloc&)
290 template<
typename _Alloc>
291 struct __alloc_neq<_Alloc, false>
294 _S_do_it(
const _Alloc& __one,
const _Alloc& __two)
295 {
return __one != __two; }
298#if __cplusplus >= 201103L
299 template<
typename _Tp,
bool
300 = __or_<is_copy_constructible<typename _Tp::value_type>,
301 is_nothrow_move_constructible<typename _Tp::value_type>>::value>
302 struct __shrink_to_fit_aux
303 {
static bool _S_do_it(_Tp&)
noexcept {
return false; } };
305 template<
typename _Tp>
306 struct __shrink_to_fit_aux<_Tp, true>
309 _S_do_it(_Tp& __c)
noexcept
314 _Tp(__make_move_if_noexcept_iterator(__c.begin()),
315 __make_move_if_noexcept_iterator(__c.end()),
316 __c.get_allocator()).swap(__c);
328_GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
The standard allocator, as per C++03 [20.4.1].
An allocator that uses global new, as per C++03 [20.4.1].