Lines Matching refs:allocator
35 class allocator;
39 // Specializing allocator<void> is deprecated, but not using it.
41 class _LIBCPP_TEMPLATE_VIS allocator<void> {
49 typedef allocator<_Up> other;
74 // allocator
77 // allocator<void> trivial in C++20.
80 class _LIBCPP_TEMPLATE_VIS allocator : private __non_trivial_if<!is_void<_Tp>::value, allocator<_Tp> > {
81 static_assert(!is_const<_Tp>::value, "std::allocator does not support const types");
82 static_assert(!is_volatile<_Tp>::value, "std::allocator does not support volatile types");
93 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 allocator() _NOEXCEPT = default;
96 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 allocator(const allocator<_Up>&) _NOEXCEPT {}
100 if (__n > allocator_traits<allocator>::max_size(*this))
133 typedef allocator<_Up> other;
162 operator==(const allocator<_Tp>&, const allocator<_Up>&) _NOEXCEPT {
169 inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const allocator<_Tp>&, const allocator<_Up>&) _NOEXCEPT {