48#if __cplusplus >= 201103L
52#define __cpp_lib_incomplete_container_elements 201505L
54namespace std _GLIBCXX_VISIBILITY(default)
56_GLIBCXX_BEGIN_NAMESPACE_VERSION
78 typedef void value_type;
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>
108 __attribute__((__always_inline__))
129 template<
typename _Tp>
133 typedef _Tp value_type;
134 typedef size_t size_type;
135 typedef ptrdiff_t difference_type;
137#if __cplusplus <= 201703L
139 typedef _Tp* pointer;
140 typedef const _Tp* const_pointer;
141 typedef _Tp& reference;
142 typedef const _Tp& const_reference;
144 template<
typename _Tp1>
149#if __cplusplus >= 201103L
155 _GLIBCXX20_DEPRECATED_SUGGEST(
"std::allocator_traits::is_always_equal")
161 __attribute__((__always_inline__))
165 __attribute__((__always_inline__))
170#if __cplusplus >= 201103L
175 template<
typename _Tp1>
176 __attribute__((__always_inline__))
180 __attribute__((__always_inline__))
181#if __cpp_constexpr_dynamic_alloc
186#if __cplusplus > 201703L
187 [[nodiscard,__gnu__::__always_inline__]]
191 if (std::__is_constant_evaluated())
193 if (__builtin_mul_overflow(__n,
sizeof(_Tp), &__n))
194 std::__throw_bad_array_new_length();
195 return static_cast<_Tp*
>(::operator
new(__n));
201 [[__gnu__::__always_inline__]]
203 deallocate(_Tp* __p,
size_t __n)
205 if (std::__is_constant_evaluated())
207 ::operator
delete(__p);
214 friend __attribute__((__always_inline__)) _GLIBCXX20_CONSTEXPR
219#if __cpp_impl_three_way_comparison < 201907L
220 friend __attribute__((__always_inline__)) _GLIBCXX20_CONSTEXPR
234 template<
typename _T1,
typename _T2>
235 __attribute__((__always_inline__))
236 inline _GLIBCXX20_CONSTEXPR
bool
241#if __cpp_impl_three_way_comparison < 201907L
242 template<
typename _T1,
typename _T2>
243 __attribute__((__always_inline__))
244 inline _GLIBCXX20_CONSTEXPR
bool
254 template<
typename _Tp>
255 class allocator<const _Tp>
258 typedef _Tp value_type;
259 template<
typename _Up> allocator(
const allocator<_Up>&) { }
262 template<
typename _Tp>
263 class allocator<volatile _Tp>
266 typedef _Tp value_type;
267 template<
typename _Up> allocator(
const allocator<_Up>&) { }
270 template<
typename _Tp>
271 class allocator<const volatile _Tp>
274 typedef _Tp value_type;
275 template<
typename _Up> allocator(
const allocator<_Up>&) { }
283#if _GLIBCXX_EXTERN_TEMPLATE
284 extern template class allocator<char>;
285 extern template class allocator<wchar_t>;
289#undef __allocator_base
291_GLIBCXX_END_NAMESPACE_VERSION
integral_constant< bool, 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].