Lines Matching full:allocator
33 class allocator; variable
37 // Specializing allocator<void> is deprecated, but not using it.
39 class _LIBCPP_TEMPLATE_VIS allocator<void> {
47 typedef allocator<_Up> other;
54 class _LIBCPP_TEMPLATE_VIS allocator<const void> {
62 typedef allocator<_Up> other;
88 // allocator
91 // allocator<void> trivial in C++20.
94 class _LIBCPP_TEMPLATE_VIS allocator : private __non_trivial_if<!is_void<_Tp>::value, allocator<_Tp…
95 static_assert(!is_const<_Tp>::value, "std::allocator does not support const types");
96 static_assert(!is_volatile<_Tp>::value, "std::allocator does not support volatile types");
107 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 allocator() _NOEXCEPT = default;
110 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 allocator(const allocator<_Up>&) _NOEXCEPT {}
113 if (__n > allocator_traits<allocator>::max_size(*this))
145 typedef allocator<_Up> other;
175 class _LIBCPP_TEMPLATE_VIS allocator<const _Tp>
176 : private __non_trivial_if<!is_void<_Tp>::value, allocator<const _Tp> > {
177 static_assert(!is_volatile<_Tp>::value, "std::allocator does not support volatile types");
188 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 allocator() _NOEXCEPT = default;
191 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 allocator(const allocator<_Up>&) _NOEXCEPT {}
194 if (__n > allocator_traits<allocator>::max_size(*this))
226 typedef allocator<_Up> other;
253 operator==(const allocator<_Tp>&, const allocator<_Up>&) _NOEXCEPT {
260 inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const allocator<_Tp>&, const allocator<_Up>&) _NOEXCEP…