48#if __cplusplus >= 201103L
52#define __cpp_lib_incomplete_container_elements 201505L
54namespace std _GLIBCXX_VISIBILITY(default)
56_GLIBCXX_BEGIN_NAMESPACE_VERSION
79 typedef size_t size_type;
80 typedef ptrdiff_t difference_type;
82#if __cplusplus <= 201703L
84 typedef void* pointer;
85 typedef const void* const_pointer;
87 template<
typename _Tp1>
92#if __cplusplus >= 201103L
98 _GLIBCXX20_DEPRECATED_SUGGEST(
"std::allocator_traits::is_always_equal")
101#if __cplusplus >= 202002L
107 template<
typename _Up>
128 template<
typename _Tp>
132 typedef _Tp value_type;
133 typedef size_t size_type;
134 typedef ptrdiff_t difference_type;
136#if __cplusplus <= 201703L
138 typedef _Tp* pointer;
139 typedef const _Tp* const_pointer;
140 typedef _Tp& reference;
141 typedef const _Tp& const_reference;
143 template<
typename _Tp1>
148#if __cplusplus >= 201103L
154 _GLIBCXX20_DEPRECATED_SUGGEST(
"std::allocator_traits::is_always_equal")
167#if __cplusplus >= 201103L
172 template<
typename _Tp1>
176#if __cpp_constexpr_dynamic_alloc
181#if __cplusplus > 201703L
186 if (std::__is_constant_evaluated())
189 std::__throw_bad_array_new_length();
190 return static_cast<_Tp*
>(::operator
new(__n));
196 [[__gnu__::__always_inline__]]
198 deallocate(_Tp* __p,
size_t __n)
200 if (std::__is_constant_evaluated())
202 ::operator
delete(__p);
213#if __cpp_impl_three_way_comparison < 201907L
227 template<
typename _T1,
typename _T2>
233#if __cpp_impl_three_way_comparison < 201907L
234 template<
typename _T1,
typename _T2>
245 template<
typename _Tp>
246 class allocator<const _Tp>
249 typedef _Tp value_type;
251 template<
typename _Up> allocator(
const allocator<_Up>&) { }
254 template<
typename _Tp>
255 class allocator<volatile _Tp>
258 typedef _Tp value_type;
260 template<
typename _Up> allocator(
const allocator<_Up>&) { }
263 template<
typename _Tp>
264 class allocator<const volatile _Tp>
267 typedef _Tp value_type;
269 template<
typename _Up> allocator(
const allocator<_Up>&) { }
276#if _GLIBCXX_EXTERN_TEMPLATE
277 extern template class allocator<char>;
278 extern template class allocator<wchar_t>;
282#undef __allocator_base
285 template<
typename _Alloc,
bool = __is_empty(_Alloc)>
287 {
static void _S_do_it(_Alloc&, _Alloc&) _GLIBCXX_NOEXCEPT { } };
289 template<
typename _Alloc>
290 struct __alloc_swap<_Alloc, false>
293 _S_do_it(_Alloc& __one, _Alloc& __two) _GLIBCXX_NOEXCEPT
302 template<
typename _Alloc,
bool = __is_empty(_Alloc)>
306 _S_do_it(
const _Alloc&,
const _Alloc&)
310 template<
typename _Alloc>
311 struct __alloc_neq<_Alloc, false>
314 _S_do_it(
const _Alloc& __one,
const _Alloc& __two)
315 {
return __one != __two; }
318#if __cplusplus >= 201103L
319 template<
typename _Tp,
bool
320 = __or_<is_copy_constructible<typename _Tp::value_type>,
321 is_nothrow_move_constructible<typename _Tp::value_type>>::value>
322 struct __shrink_to_fit_aux
323 {
static bool _S_do_it(_Tp&)
noexcept {
return false; } };
325 template<
typename _Tp>
326 struct __shrink_to_fit_aux<_Tp, true>
330 _S_do_it(_Tp& __c)
noexcept
335 _Tp(__make_move_if_noexcept_iterator(__c.begin()),
336 __make_move_if_noexcept_iterator(__c.end()),
337 __c.get_allocator()).swap(__c);
350_GLIBCXX_END_NAMESPACE_VERSION
integral_constant< bool, true > true_type
The type used as a compile-time boolean with true value.
void swap(any &__x, any &__y) noexcept
Exchange the states of two any objects.
constexpr bool operator==(const allocator< _T1 > &, const allocator< _T2 > &) noexcept
ISO C++ entities toplevel namespace is std.
The standard allocator, as per C++03 [20.4.1].