51#if __cplusplus >= 201103L
55 typedef _Alloc allocator_type;
56#if __cplusplus >= 201103L
64 typedef value_type& reference;
65 typedef const value_type& const_reference;
66 using _Base_type::allocate;
67 using _Base_type::deallocate;
68 using _Base_type::construct;
69 using _Base_type::destroy;
70 using _Base_type::max_size;
73 template<
typename _Ptr>
80 template<
typename _Ptr,
typename... _Args>
82 construct(_Alloc& __a, _Ptr __p, _Args&&... __args)
89 template<
typename _Ptr>
91 destroy(_Alloc& __a, _Ptr __p)
94 static _Alloc _S_select_on_copy(
const _Alloc& __a)
95 {
return _Base_type::select_on_container_copy_construction(__a); }
97 static void _S_on_swap(_Alloc& __a, _Alloc& __b)
98 { std::__alloc_on_swap(__a, __b); }
100 static constexpr bool _S_propagate_on_copy_assign()
101 {
return _Base_type::propagate_on_container_copy_assignment::value; }
103 static constexpr bool _S_propagate_on_move_assign()
104 {
return _Base_type::propagate_on_container_move_assignment::value; }
106 static constexpr bool _S_propagate_on_swap()
107 {
return _Base_type::propagate_on_container_swap::value; }
109 static constexpr bool _S_always_equal()
110 {
return _Base_type::is_always_equal::value; }
112 static constexpr bool _S_nothrow_move()
113 {
return _S_propagate_on_move_assign() || _S_always_equal(); }
115 template<
typename _Tp>
120 typedef typename _Alloc::pointer pointer;
121 typedef typename _Alloc::const_pointer const_pointer;
122 typedef typename _Alloc::value_type value_type;
123 typedef typename _Alloc::reference reference;
124 typedef typename _Alloc::const_reference const_reference;
125 typedef typename _Alloc::size_type size_type;
126 typedef typename _Alloc::difference_type difference_type;
129 allocate(_Alloc& __a, size_type __n)
130 {
return __a.allocate(__n); }
132 static void deallocate(_Alloc& __a, pointer __p, size_type __n)
133 { __a.deallocate(__p, __n); }
135 template<
typename _Tp>
136 static void construct(_Alloc& __a, pointer __p,
const _Tp& __arg)
137 { __a.construct(__p, __arg); }
139 static void destroy(_Alloc& __a, pointer __p)
140 { __a.destroy(__p); }
142 static size_type max_size(
const _Alloc& __a)
143 {
return __a.max_size(); }
145 static const _Alloc& _S_select_on_copy(
const _Alloc& __a) {
return __a; }
147 static void _S_on_swap(_Alloc& __a, _Alloc& __b)
151 std::__alloc_swap<_Alloc>::_S_do_it(__a, __b);
154 template<
typename _Tp>
156 {
typedef typename _Alloc::template rebind<_Tp>::other other; };