48#if __cplusplus >= 201103L
52#pragma GCC diagnostic push
53#pragma GCC diagnostic ignored "-Wc++11-extensions"
55namespace std _GLIBCXX_VISIBILITY(default)
57_GLIBCXX_BEGIN_NAMESPACE_VERSION
80 typedef size_t size_type;
83#if __cplusplus <= 201703L
85 typedef void* pointer;
86 typedef const void* const_pointer;
88 template<
typename _Tp1>
93#if __cplusplus >= 201103L
96 using propagate_on_container_move_assignment =
true_type;
98#if __cplusplus <= 202302L
100 _GLIBCXX20_DEPRECATED_SUGGEST(
"std::allocator_traits::is_always_equal")
104#if __cplusplus >= 202002L
110 template<
typename _Up>
132 template<
typename _Tp>
136 typedef _Tp value_type;
137 typedef size_t size_type;
140#if __cplusplus <= 201703L
142 typedef _Tp* pointer;
143 typedef const _Tp* const_pointer;
144 typedef _Tp& reference;
145 typedef const _Tp& const_reference;
147 template<
typename _Tp1>
152#if __cplusplus >= 201103L
155 using propagate_on_container_move_assignment =
true_type;
157#if __cplusplus <= 202302L
158 using is_always_equal
159 _GLIBCXX20_DEPRECATED_SUGGEST(
"std::allocator_traits::is_always_equal")
175#if __cplusplus >= 201103L
180 template<
typename _Tp1>
186#if __cpp_constexpr_dynamic_alloc
191#if __cplusplus > 201703L
196 if (std::__is_constant_evaluated())
199 std::__throw_bad_array_new_length();
200 return static_cast<_Tp*
>(::operator
new(__n));
206 [[__gnu__::__always_inline__]]
208 deallocate(_Tp* __p,
size_t __n)
210 if (std::__is_constant_evaluated())
212 ::operator
delete(__p);
224#if __cpp_impl_three_way_comparison < 201907L
239 template<
typename _T1,
typename _T2>
246#if __cpp_impl_three_way_comparison < 201907L
247 template<
typename _T1,
typename _T2>
259 template<
typename _Tp>
260 class allocator<const _Tp>
263 typedef _Tp value_type;
265 template<
typename _Up> allocator(
const allocator<_Up>&) { }
268 template<
typename _Tp>
269 class allocator<volatile _Tp>
272 typedef _Tp value_type;
274 template<
typename _Up> allocator(
const allocator<_Up>&) { }
277 template<
typename _Tp>
278 class allocator<const volatile _Tp>
281 typedef _Tp value_type;
283 template<
typename _Up> allocator(
const allocator<_Up>&) { }
291#if _GLIBCXX_EXTERN_TEMPLATE
292 extern template class allocator<char>;
293 extern template class allocator<wchar_t>;
297#undef __allocator_base
299_GLIBCXX_END_NAMESPACE_VERSION
302#pragma GCC diagnostic pop
__bool_constant< true > true_type
The type used as a compile-time boolean with true value.
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].
An allocator that uses global new, as per C++03 [20.4.1].