Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===---------------------------- stack -----------------------------------===// |
| 3 | // |
Howard Hinnant | c566dc3 | 2010-05-11 21:36:01 +0000 | [diff] [blame] | 4 | // The LLVM Compiler Infrastructure |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 5 | // |
Howard Hinnant | ee11c31 | 2010-11-16 22:09:02 +0000 | [diff] [blame] | 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_STACK |
| 12 | #define _LIBCPP_STACK |
| 13 | |
| 14 | /* |
| 15 | stack synopsis |
| 16 | |
| 17 | namespace std |
| 18 | { |
| 19 | |
| 20 | template <class T, class Container = deque<T>> |
| 21 | class stack |
| 22 | { |
| 23 | public: |
| 24 | typedef Container container_type; |
| 25 | typedef typename container_type::value_type value_type; |
| 26 | typedef typename container_type::reference reference; |
| 27 | typedef typename container_type::const_reference const_reference; |
| 28 | typedef typename container_type::size_type size_type; |
| 29 | |
| 30 | protected: |
| 31 | container_type c; |
| 32 | |
| 33 | public: |
Howard Hinnant | e0da4a1 | 2011-06-04 22:09:19 +0000 | [diff] [blame] | 34 | stack() = default; |
| 35 | ~stack() = default; |
| 36 | |
| 37 | stack(const stack& q) = default; |
| 38 | stack(stack&& q) = default; |
| 39 | |
| 40 | stack& operator=(const stack& q) = default; |
| 41 | stack& operator=(stack&& q) = default; |
| 42 | |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 43 | explicit stack(const container_type& c); |
| 44 | explicit stack(container_type&& c); |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 45 | template <class Alloc> explicit stack(const Alloc& a); |
| 46 | template <class Alloc> stack(const container_type& c, const Alloc& a); |
| 47 | template <class Alloc> stack(container_type&& c, const Alloc& a); |
Howard Hinnant | e0da4a1 | 2011-06-04 22:09:19 +0000 | [diff] [blame] | 48 | template <class Alloc> stack(const stack& c, const Alloc& a); |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 49 | template <class Alloc> stack(stack&& c, const Alloc& a); |
| 50 | |
| 51 | bool empty() const; |
| 52 | size_type size() const; |
| 53 | reference top(); |
| 54 | const_reference top() const; |
| 55 | |
| 56 | void push(const value_type& x); |
| 57 | void push(value_type&& x); |
| 58 | template <class... Args> void emplace(Args&&... args); |
| 59 | void pop(); |
| 60 | |
Eric Fiselier | 6bfed25 | 2016-04-21 23:38:59 +0000 | [diff] [blame^] | 61 | void swap(stack& c) noexcept(is_nothrow_swappable_v<Container>) |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 62 | }; |
| 63 | |
| 64 | template <class T, class Container> |
| 65 | bool operator==(const stack<T, Container>& x, const stack<T, Container>& y); |
| 66 | template <class T, class Container> |
| 67 | bool operator< (const stack<T, Container>& x, const stack<T, Container>& y); |
| 68 | template <class T, class Container> |
| 69 | bool operator!=(const stack<T, Container>& x, const stack<T, Container>& y); |
| 70 | template <class T, class Container> |
| 71 | bool operator> (const stack<T, Container>& x, const stack<T, Container>& y); |
| 72 | template <class T, class Container> |
| 73 | bool operator>=(const stack<T, Container>& x, const stack<T, Container>& y); |
| 74 | template <class T, class Container> |
| 75 | bool operator<=(const stack<T, Container>& x, const stack<T, Container>& y); |
| 76 | |
| 77 | template <class T, class Container> |
Howard Hinnant | e0da4a1 | 2011-06-04 22:09:19 +0000 | [diff] [blame] | 78 | void swap(stack<T, Container>& x, stack<T, Container>& y) |
| 79 | noexcept(noexcept(x.swap(y))); |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 80 | |
| 81 | } // std |
| 82 | |
| 83 | */ |
| 84 | |
| 85 | #include <__config> |
| 86 | #include <deque> |
| 87 | |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 88 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 89 | #pragma GCC system_header |
Howard Hinnant | aaaa52b | 2011-10-17 20:05:10 +0000 | [diff] [blame] | 90 | #endif |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 91 | |
| 92 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 93 | |
Marshall Clow | 9e1b845 | 2015-02-18 17:51:56 +0000 | [diff] [blame] | 94 | template <class _Tp, class _Container = deque<_Tp> > class _LIBCPP_TYPE_VIS_ONLY stack; |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 95 | |
| 96 | template <class _Tp, class _Container> |
Howard Hinnant | a54386e | 2012-09-14 00:39:16 +0000 | [diff] [blame] | 97 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 98 | bool |
| 99 | operator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y); |
| 100 | |
| 101 | template <class _Tp, class _Container> |
Howard Hinnant | a54386e | 2012-09-14 00:39:16 +0000 | [diff] [blame] | 102 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 103 | bool |
| 104 | operator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y); |
| 105 | |
Marshall Clow | 9e1b845 | 2015-02-18 17:51:56 +0000 | [diff] [blame] | 106 | template <class _Tp, class _Container /*= deque<_Tp>*/> |
Howard Hinnant | a37d3cf | 2013-08-12 18:38:34 +0000 | [diff] [blame] | 107 | class _LIBCPP_TYPE_VIS_ONLY stack |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 108 | { |
| 109 | public: |
| 110 | typedef _Container container_type; |
| 111 | typedef typename container_type::value_type value_type; |
| 112 | typedef typename container_type::reference reference; |
| 113 | typedef typename container_type::const_reference const_reference; |
| 114 | typedef typename container_type::size_type size_type; |
Marshall Clow | b8825f0 | 2016-03-14 17:58:11 +0000 | [diff] [blame] | 115 | static_assert((is_same<_Tp, value_type>::value), "" ); |
| 116 | |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 117 | protected: |
| 118 | container_type c; |
| 119 | |
| 120 | public: |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 121 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | e0da4a1 | 2011-06-04 22:09:19 +0000 | [diff] [blame] | 122 | stack() |
| 123 | _NOEXCEPT_(is_nothrow_default_constructible<container_type>::value) |
| 124 | : c() {} |
| 125 | |
| 126 | _LIBCPP_INLINE_VISIBILITY |
| 127 | stack(const stack& __q) : c(__q.c) {} |
| 128 | |
| 129 | #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES |
| 130 | _LIBCPP_INLINE_VISIBILITY |
| 131 | stack(stack&& __q) |
| 132 | _NOEXCEPT_(is_nothrow_move_constructible<container_type>::value) |
Howard Hinnant | b1ad5a8 | 2011-06-30 21:18:19 +0000 | [diff] [blame] | 133 | : c(_VSTD::move(__q.c)) {} |
Howard Hinnant | e0da4a1 | 2011-06-04 22:09:19 +0000 | [diff] [blame] | 134 | #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES |
| 135 | |
| 136 | _LIBCPP_INLINE_VISIBILITY |
| 137 | stack& operator=(const stack& __q) {c = __q.c; return *this;} |
| 138 | |
| 139 | #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES |
| 140 | _LIBCPP_INLINE_VISIBILITY |
| 141 | stack& operator=(stack&& __q) |
| 142 | _NOEXCEPT_(is_nothrow_move_assignable<container_type>::value) |
Howard Hinnant | b1ad5a8 | 2011-06-30 21:18:19 +0000 | [diff] [blame] | 143 | {c = _VSTD::move(__q.c); return *this;} |
Howard Hinnant | e0da4a1 | 2011-06-04 22:09:19 +0000 | [diff] [blame] | 144 | #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES |
| 145 | |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 146 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 147 | explicit stack(const container_type& __c) : c(__c) {} |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 148 | #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 149 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | b1ad5a8 | 2011-06-30 21:18:19 +0000 | [diff] [blame] | 150 | explicit stack(container_type&& __c) : c(_VSTD::move(__c)) {} |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 151 | #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 152 | template <class _Alloc> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 153 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 154 | explicit stack(const _Alloc& __a, |
| 155 | typename enable_if<uses_allocator<container_type, |
| 156 | _Alloc>::value>::type* = 0) |
| 157 | : c(__a) {} |
| 158 | template <class _Alloc> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 159 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 160 | stack(const container_type& __c, const _Alloc& __a, |
| 161 | typename enable_if<uses_allocator<container_type, |
| 162 | _Alloc>::value>::type* = 0) |
| 163 | : c(__c, __a) {} |
| 164 | template <class _Alloc> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 165 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 166 | stack(const stack& __s, const _Alloc& __a, |
| 167 | typename enable_if<uses_allocator<container_type, |
| 168 | _Alloc>::value>::type* = 0) |
| 169 | : c(__s.c, __a) {} |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 170 | #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 171 | template <class _Alloc> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 172 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 173 | stack(container_type&& __c, const _Alloc& __a, |
| 174 | typename enable_if<uses_allocator<container_type, |
| 175 | _Alloc>::value>::type* = 0) |
Howard Hinnant | b1ad5a8 | 2011-06-30 21:18:19 +0000 | [diff] [blame] | 176 | : c(_VSTD::move(__c), __a) {} |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 177 | template <class _Alloc> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 178 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 179 | stack(stack&& __s, const _Alloc& __a, |
| 180 | typename enable_if<uses_allocator<container_type, |
| 181 | _Alloc>::value>::type* = 0) |
Howard Hinnant | b1ad5a8 | 2011-06-30 21:18:19 +0000 | [diff] [blame] | 182 | : c(_VSTD::move(__s.c), __a) {} |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 183 | #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 184 | |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 185 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 186 | bool empty() const {return c.empty();} |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 187 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 188 | size_type size() const {return c.size();} |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 189 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 190 | reference top() {return c.back();} |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 191 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 192 | const_reference top() const {return c.back();} |
| 193 | |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 194 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 195 | void push(const value_type& __v) {c.push_back(__v);} |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 196 | #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 197 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | b1ad5a8 | 2011-06-30 21:18:19 +0000 | [diff] [blame] | 198 | void push(value_type&& __v) {c.push_back(_VSTD::move(__v));} |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 199 | #ifndef _LIBCPP_HAS_NO_VARIADICS |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 200 | template <class... _Args> |
| 201 | _LIBCPP_INLINE_VISIBILITY |
| 202 | void emplace(_Args&&... __args) |
Howard Hinnant | b1ad5a8 | 2011-06-30 21:18:19 +0000 | [diff] [blame] | 203 | {c.emplace_back(_VSTD::forward<_Args>(__args)...);} |
Howard Hinnant | 74279a5 | 2010-09-04 23:28:19 +0000 | [diff] [blame] | 204 | #endif // _LIBCPP_HAS_NO_VARIADICS |
| 205 | #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 206 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 207 | void pop() {c.pop_back();} |
| 208 | |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 209 | _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 210 | void swap(stack& __s) |
Howard Hinnant | e0da4a1 | 2011-06-04 22:09:19 +0000 | [diff] [blame] | 211 | _NOEXCEPT_(__is_nothrow_swappable<container_type>::value) |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 212 | { |
Howard Hinnant | b1ad5a8 | 2011-06-30 21:18:19 +0000 | [diff] [blame] | 213 | using _VSTD::swap; |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 214 | swap(c, __s.c); |
| 215 | } |
| 216 | |
| 217 | template <class T1, class _C1> |
| 218 | friend |
| 219 | bool |
| 220 | operator==(const stack<T1, _C1>& __x, const stack<T1, _C1>& __y); |
Howard Hinnant | 3b6579a | 2010-08-22 00:02:43 +0000 | [diff] [blame] | 221 | |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 222 | template <class T1, class _C1> |
| 223 | friend |
| 224 | bool |
| 225 | operator< (const stack<T1, _C1>& __x, const stack<T1, _C1>& __y); |
| 226 | }; |
| 227 | |
| 228 | template <class _Tp, class _Container> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 229 | inline _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 230 | bool |
| 231 | operator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) |
| 232 | { |
| 233 | return __x.c == __y.c; |
| 234 | } |
| 235 | |
| 236 | template <class _Tp, class _Container> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 237 | inline _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 238 | bool |
| 239 | operator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) |
| 240 | { |
| 241 | return __x.c < __y.c; |
| 242 | } |
| 243 | |
| 244 | template <class _Tp, class _Container> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 245 | inline _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 246 | bool |
| 247 | operator!=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) |
| 248 | { |
| 249 | return !(__x == __y); |
| 250 | } |
| 251 | |
| 252 | template <class _Tp, class _Container> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 253 | inline _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 254 | bool |
| 255 | operator> (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) |
| 256 | { |
| 257 | return __y < __x; |
| 258 | } |
| 259 | |
| 260 | template <class _Tp, class _Container> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 261 | inline _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 262 | bool |
| 263 | operator>=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) |
| 264 | { |
| 265 | return !(__x < __y); |
| 266 | } |
| 267 | |
| 268 | template <class _Tp, class _Container> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 269 | inline _LIBCPP_INLINE_VISIBILITY |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 270 | bool |
| 271 | operator<=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) |
| 272 | { |
| 273 | return !(__y < __x); |
| 274 | } |
| 275 | |
| 276 | template <class _Tp, class _Container> |
Howard Hinnant | 186dca8 | 2010-09-23 17:31:07 +0000 | [diff] [blame] | 277 | inline _LIBCPP_INLINE_VISIBILITY |
Eric Fiselier | 6bfed25 | 2016-04-21 23:38:59 +0000 | [diff] [blame^] | 278 | typename enable_if< |
| 279 | __is_swappable<_Container>::value, |
| 280 | void |
| 281 | >::type |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 282 | swap(stack<_Tp, _Container>& __x, stack<_Tp, _Container>& __y) |
Howard Hinnant | e0da4a1 | 2011-06-04 22:09:19 +0000 | [diff] [blame] | 283 | _NOEXCEPT_(_NOEXCEPT_(__x.swap(__y))) |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 284 | { |
| 285 | __x.swap(__y); |
| 286 | } |
| 287 | |
| 288 | template <class _Tp, class _Container, class _Alloc> |
Howard Hinnant | a37d3cf | 2013-08-12 18:38:34 +0000 | [diff] [blame] | 289 | struct _LIBCPP_TYPE_VIS_ONLY uses_allocator<stack<_Tp, _Container>, _Alloc> |
Howard Hinnant | c51e102 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 290 | : public uses_allocator<_Container, _Alloc> |
| 291 | { |
| 292 | }; |
| 293 | |
| 294 | _LIBCPP_END_NAMESPACE_STD |
| 295 | |
| 296 | #endif // _LIBCPP_STACK |