13e519524SHoward Hinnant// -*- C++ -*- 2eb8650a7SLouis Dionne//===----------------------------------------------------------------------===// 33e519524SHoward Hinnant// 457b08b09SChandler Carruth// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 557b08b09SChandler Carruth// See https://llvm.org/LICENSE.txt for license information. 657b08b09SChandler Carruth// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 73e519524SHoward Hinnant// 83e519524SHoward Hinnant//===----------------------------------------------------------------------===// 93e519524SHoward Hinnant 103e519524SHoward Hinnant#ifndef _LIBCPP_STACK 113e519524SHoward Hinnant#define _LIBCPP_STACK 123e519524SHoward Hinnant 133e519524SHoward Hinnant/* 143e519524SHoward Hinnant stack synopsis 153e519524SHoward Hinnant 163e519524SHoward Hinnantnamespace std 173e519524SHoward Hinnant{ 183e519524SHoward Hinnant 193e519524SHoward Hinnanttemplate <class T, class Container = deque<T>> 203e519524SHoward Hinnantclass stack 213e519524SHoward Hinnant{ 223e519524SHoward Hinnantpublic: 233e519524SHoward Hinnant typedef Container container_type; 243e519524SHoward Hinnant typedef typename container_type::value_type value_type; 253e519524SHoward Hinnant typedef typename container_type::reference reference; 263e519524SHoward Hinnant typedef typename container_type::const_reference const_reference; 273e519524SHoward Hinnant typedef typename container_type::size_type size_type; 283e519524SHoward Hinnant 293e519524SHoward Hinnantprotected: 303e519524SHoward Hinnant container_type c; 313e519524SHoward Hinnant 323e519524SHoward Hinnantpublic: 33bd0c1600SHoward Hinnant stack() = default; 34bd0c1600SHoward Hinnant ~stack() = default; 35bd0c1600SHoward Hinnant 36bd0c1600SHoward Hinnant stack(const stack& q) = default; 37bd0c1600SHoward Hinnant stack(stack&& q) = default; 38bd0c1600SHoward Hinnant 39bd0c1600SHoward Hinnant stack& operator=(const stack& q) = default; 40bd0c1600SHoward Hinnant stack& operator=(stack&& q) = default; 41bd0c1600SHoward Hinnant 423e519524SHoward Hinnant explicit stack(const container_type& c); 433e519524SHoward Hinnant explicit stack(container_type&& c); 44*f3aed369SNikolas Klauser template <class InputIterator> stack(InputIterator first, InputIterator last); // since C++23 453e519524SHoward Hinnant template <class Alloc> explicit stack(const Alloc& a); 463e519524SHoward Hinnant template <class Alloc> stack(const container_type& c, const Alloc& a); 473e519524SHoward Hinnant template <class Alloc> stack(container_type&& c, const Alloc& a); 48bd0c1600SHoward Hinnant template <class Alloc> stack(const stack& c, const Alloc& a); 493e519524SHoward Hinnant template <class Alloc> stack(stack&& c, const Alloc& a); 50*f3aed369SNikolas Klauser template<class InputIterator, class Alloc> 51*f3aed369SNikolas Klauser stack(InputIterator first, InputIterator last, const Alloc&); // since C++23 523e519524SHoward Hinnant 533e519524SHoward Hinnant bool empty() const; 543e519524SHoward Hinnant size_type size() const; 553e519524SHoward Hinnant reference top(); 563e519524SHoward Hinnant const_reference top() const; 573e519524SHoward Hinnant 583e519524SHoward Hinnant void push(const value_type& x); 593e519524SHoward Hinnant void push(value_type&& x); 6063b560beSMarshall Clow template <class... Args> reference emplace(Args&&... args); // reference in C++17 613e519524SHoward Hinnant void pop(); 623e519524SHoward Hinnant 63f07dd8d0SEric Fiselier void swap(stack& c) noexcept(is_nothrow_swappable_v<Container>) 643e519524SHoward Hinnant}; 653e519524SHoward Hinnant 665b8b8b5dSMarshall Clowtemplate<class Container> 675b8b8b5dSMarshall Clow stack(Container) -> stack<typename Container::value_type, Container>; // C++17 685b8b8b5dSMarshall Clow 69*f3aed369SNikolas Klausertemplate<class InputIterator> 70*f3aed369SNikolas Klauser stack(InputIterator, InputIterator) -> stack<iter-value-type<InputIterator>>; // since C++23 71*f3aed369SNikolas Klauser 725b8b8b5dSMarshall Clowtemplate<class Container, class Allocator> 735b8b8b5dSMarshall Clow stack(Container, Allocator) -> stack<typename Container::value_type, Container>; // C++17 745b8b8b5dSMarshall Clow 75*f3aed369SNikolas Klausertemplate<class InputIterator, class Allocator> 76*f3aed369SNikolas Klauser stack(InputIterator, InputIterator, Allocator) 77*f3aed369SNikolas Klauser -> stack<iter-value-type<InputIterator>, 78*f3aed369SNikolas Klauser deque<iter-value-type<InputIterator>, Allocator>>; // since C++23 79*f3aed369SNikolas Klauser 803e519524SHoward Hinnanttemplate <class T, class Container> 813e519524SHoward Hinnant bool operator==(const stack<T, Container>& x, const stack<T, Container>& y); 823e519524SHoward Hinnanttemplate <class T, class Container> 833e519524SHoward Hinnant bool operator< (const stack<T, Container>& x, const stack<T, Container>& y); 843e519524SHoward Hinnanttemplate <class T, class Container> 853e519524SHoward Hinnant bool operator!=(const stack<T, Container>& x, const stack<T, Container>& y); 863e519524SHoward Hinnanttemplate <class T, class Container> 873e519524SHoward Hinnant bool operator> (const stack<T, Container>& x, const stack<T, Container>& y); 883e519524SHoward Hinnanttemplate <class T, class Container> 893e519524SHoward Hinnant bool operator>=(const stack<T, Container>& x, const stack<T, Container>& y); 903e519524SHoward Hinnanttemplate <class T, class Container> 913e519524SHoward Hinnant bool operator<=(const stack<T, Container>& x, const stack<T, Container>& y); 923e519524SHoward Hinnant 933e519524SHoward Hinnanttemplate <class T, class Container> 94bd0c1600SHoward Hinnant void swap(stack<T, Container>& x, stack<T, Container>& y) 95bd0c1600SHoward Hinnant noexcept(noexcept(x.swap(y))); 963e519524SHoward Hinnant 973e519524SHoward Hinnant} // std 983e519524SHoward Hinnant 993e519524SHoward Hinnant*/ 1003e519524SHoward Hinnant 1013e519524SHoward Hinnant#include <__config> 102*f3aed369SNikolas Klauser#include <__iterator/iterator_traits.h> 103050b064fSChristopher Di Bella#include <__memory/uses_allocator.h> 1046adbc83eSChristopher Di Bella#include <__utility/forward.h> 1053e519524SHoward Hinnant#include <deque> 106*f3aed369SNikolas Klauser#include <type_traits> 107bd6e6846SMark de Wever#include <version> 1083e519524SHoward Hinnant 109073458b1SHoward Hinnant#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 1103e519524SHoward Hinnant#pragma GCC system_header 111073458b1SHoward Hinnant#endif 1123e519524SHoward Hinnant 1133e519524SHoward Hinnant_LIBCPP_BEGIN_NAMESPACE_STD 1143e519524SHoward Hinnant 115e2f2d1edSEric Fiseliertemplate <class _Tp, class _Container = deque<_Tp> > class _LIBCPP_TEMPLATE_VIS stack; 1163e519524SHoward Hinnant 1173e519524SHoward Hinnanttemplate <class _Tp, class _Container> 118aeb85680SHoward Hinnant_LIBCPP_INLINE_VISIBILITY 1193e519524SHoward Hinnantbool 1203e519524SHoward Hinnantoperator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y); 1213e519524SHoward Hinnant 1223e519524SHoward Hinnanttemplate <class _Tp, class _Container> 123aeb85680SHoward Hinnant_LIBCPP_INLINE_VISIBILITY 1243e519524SHoward Hinnantbool 1253e519524SHoward Hinnantoperator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y); 1263e519524SHoward Hinnant 1273afa22a3SMarshall Clowtemplate <class _Tp, class _Container /*= deque<_Tp>*/> 128e2f2d1edSEric Fiselierclass _LIBCPP_TEMPLATE_VIS stack 1293e519524SHoward Hinnant{ 1303e519524SHoward Hinnantpublic: 1313e519524SHoward Hinnant typedef _Container container_type; 1323e519524SHoward Hinnant typedef typename container_type::value_type value_type; 1333e519524SHoward Hinnant typedef typename container_type::reference reference; 1343e519524SHoward Hinnant typedef typename container_type::const_reference const_reference; 1353e519524SHoward Hinnant typedef typename container_type::size_type size_type; 136c1fe2c43SMarshall Clow static_assert((is_same<_Tp, value_type>::value), "" ); 1373e519524SHoward Hinnant 1383e519524SHoward Hinnantprotected: 1393e519524SHoward Hinnant container_type c; 1403e519524SHoward Hinnant 1413e519524SHoward Hinnantpublic: 142e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 143bd0c1600SHoward Hinnant stack() 144bd0c1600SHoward Hinnant _NOEXCEPT_(is_nothrow_default_constructible<container_type>::value) 145bd0c1600SHoward Hinnant : c() {} 146bd0c1600SHoward Hinnant 147bd0c1600SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 148bd0c1600SHoward Hinnant stack(const stack& __q) : c(__q.c) {} 149bd0c1600SHoward Hinnant 1507196ee31SEric Fiselier _LIBCPP_INLINE_VISIBILITY 1517196ee31SEric Fiselier stack& operator=(const stack& __q) {c = __q.c; return *this;} 1527196ee31SEric Fiselier 1537196ee31SEric Fiselier 1547196ee31SEric Fiselier#ifndef _LIBCPP_CXX03_LANG 155bd0c1600SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 156bd0c1600SHoward Hinnant stack(stack&& __q) 157bd0c1600SHoward Hinnant _NOEXCEPT_(is_nothrow_move_constructible<container_type>::value) 158ce48a113SHoward Hinnant : c(_VSTD::move(__q.c)) {} 159bd0c1600SHoward Hinnant 160bd0c1600SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 161bd0c1600SHoward Hinnant stack& operator=(stack&& __q) 162bd0c1600SHoward Hinnant _NOEXCEPT_(is_nothrow_move_assignable<container_type>::value) 163ce48a113SHoward Hinnant {c = _VSTD::move(__q.c); return *this;} 1647196ee31SEric Fiselier 1657196ee31SEric Fiselier _LIBCPP_INLINE_VISIBILITY 1667196ee31SEric Fiselier explicit stack(container_type&& __c) : c(_VSTD::move(__c)) {} 1677196ee31SEric Fiselier#endif // _LIBCPP_CXX03_LANG 168bd0c1600SHoward Hinnant 169e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1703e519524SHoward Hinnant explicit stack(const container_type& __c) : c(__c) {} 1717196ee31SEric Fiselier 1723e519524SHoward Hinnant template <class _Alloc> 173e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1743e519524SHoward Hinnant explicit stack(const _Alloc& __a, 175b4e88d4dSLouis Dionne __enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0) 1763e519524SHoward Hinnant : c(__a) {} 1773e519524SHoward Hinnant template <class _Alloc> 178e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1793e519524SHoward Hinnant stack(const container_type& __c, const _Alloc& __a, 180b4e88d4dSLouis Dionne __enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0) 1813e519524SHoward Hinnant : c(__c, __a) {} 1823e519524SHoward Hinnant template <class _Alloc> 183e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1843e519524SHoward Hinnant stack(const stack& __s, const _Alloc& __a, 185b4e88d4dSLouis Dionne __enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0) 1863e519524SHoward Hinnant : c(__s.c, __a) {} 1877196ee31SEric Fiselier#ifndef _LIBCPP_CXX03_LANG 1883e519524SHoward Hinnant template <class _Alloc> 189e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1903e519524SHoward Hinnant stack(container_type&& __c, const _Alloc& __a, 191b4e88d4dSLouis Dionne __enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0) 192ce48a113SHoward Hinnant : c(_VSTD::move(__c), __a) {} 1933e519524SHoward Hinnant template <class _Alloc> 194e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1953e519524SHoward Hinnant stack(stack&& __s, const _Alloc& __a, 196b4e88d4dSLouis Dionne __enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0) 197ce48a113SHoward Hinnant : c(_VSTD::move(__s.c), __a) {} 1987196ee31SEric Fiselier#endif // _LIBCPP_CXX03_LANG 1993e519524SHoward Hinnant 200*f3aed369SNikolas Klauser#if _LIBCPP_STD_VER > 20 201*f3aed369SNikolas Klauser template <class _InputIterator, 202*f3aed369SNikolas Klauser class = __enable_if_t<__is_cpp17_input_iterator<_InputIterator>::value>> 203*f3aed369SNikolas Klauser _LIBCPP_HIDE_FROM_ABI 204*f3aed369SNikolas Klauser stack(_InputIterator __first, _InputIterator __last) : c(__first, __last) {} 205*f3aed369SNikolas Klauser 206*f3aed369SNikolas Klauser template <class _InputIterator, 207*f3aed369SNikolas Klauser class _Alloc, 208*f3aed369SNikolas Klauser class = __enable_if_t<__is_cpp17_input_iterator<_InputIterator>::value>, 209*f3aed369SNikolas Klauser class = __enable_if_t<uses_allocator<container_type, _Alloc>::value>> 210*f3aed369SNikolas Klauser _LIBCPP_HIDE_FROM_ABI 211*f3aed369SNikolas Klauser stack(_InputIterator __first, _InputIterator __last, const _Alloc& __alloc) : c(__first, __last, __alloc) {} 212*f3aed369SNikolas Klauser#endif 213*f3aed369SNikolas Klauser 21472c8fad4SMarshall Clow _LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY 2153e519524SHoward Hinnant bool empty() const {return c.empty();} 216e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2173e519524SHoward Hinnant size_type size() const {return c.size();} 218e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2193e519524SHoward Hinnant reference top() {return c.back();} 220e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2213e519524SHoward Hinnant const_reference top() const {return c.back();} 2223e519524SHoward Hinnant 223e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2243e519524SHoward Hinnant void push(const value_type& __v) {c.push_back(__v);} 2257196ee31SEric Fiselier#ifndef _LIBCPP_CXX03_LANG 226e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 227ce48a113SHoward Hinnant void push(value_type&& __v) {c.push_back(_VSTD::move(__v));} 2287196ee31SEric Fiselier 229e0601335SHoward Hinnant template <class... _Args> 230e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 23163b560beSMarshall Clow#if _LIBCPP_STD_VER > 14 232e34f5ffeSMarshall Clow decltype(auto) emplace(_Args&&... __args) 2330e411641SEric Fiselier { return c.emplace_back(_VSTD::forward<_Args>(__args)...);} 23463b560beSMarshall Clow#else 23563b560beSMarshall Clow void emplace(_Args&&... __args) 23663b560beSMarshall Clow { c.emplace_back(_VSTD::forward<_Args>(__args)...);} 23763b560beSMarshall Clow#endif 2387196ee31SEric Fiselier#endif // _LIBCPP_CXX03_LANG 2397196ee31SEric Fiselier 240e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2413e519524SHoward Hinnant void pop() {c.pop_back();} 2423e519524SHoward Hinnant 243e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2443e519524SHoward Hinnant void swap(stack& __s) 245bd0c1600SHoward Hinnant _NOEXCEPT_(__is_nothrow_swappable<container_type>::value) 2463e519524SHoward Hinnant { 247ce48a113SHoward Hinnant using _VSTD::swap; 2483e519524SHoward Hinnant swap(c, __s.c); 2493e519524SHoward Hinnant } 2503e519524SHoward Hinnant 2513e519524SHoward Hinnant template <class T1, class _C1> 2523e519524SHoward Hinnant friend 2533e519524SHoward Hinnant bool 2543e519524SHoward Hinnant operator==(const stack<T1, _C1>& __x, const stack<T1, _C1>& __y); 2553e519524SHoward Hinnant 2563e519524SHoward Hinnant template <class T1, class _C1> 2573e519524SHoward Hinnant friend 2583e519524SHoward Hinnant bool 2593e519524SHoward Hinnant operator< (const stack<T1, _C1>& __x, const stack<T1, _C1>& __y); 2603e519524SHoward Hinnant}; 2613e519524SHoward Hinnant 262*f3aed369SNikolas Klauser#if _LIBCPP_STD_VER > 14 2635b8b8b5dSMarshall Clowtemplate<class _Container, 2644e0ea2cfSLouis Dionne class = enable_if_t<!__is_allocator<_Container>::value> 2655b8b8b5dSMarshall Clow> 2665b8b8b5dSMarshall Clowstack(_Container) 2675b8b8b5dSMarshall Clow -> stack<typename _Container::value_type, _Container>; 2685b8b8b5dSMarshall Clow 2695b8b8b5dSMarshall Clowtemplate<class _Container, 2705b8b8b5dSMarshall Clow class _Alloc, 2714e0ea2cfSLouis Dionne class = enable_if_t<!__is_allocator<_Container>::value>, 2724e0ea2cfSLouis Dionne class = enable_if_t<uses_allocator<_Container, _Alloc>::value> 2735b8b8b5dSMarshall Clow > 2745b8b8b5dSMarshall Clowstack(_Container, _Alloc) 2755b8b8b5dSMarshall Clow -> stack<typename _Container::value_type, _Container>; 2765b8b8b5dSMarshall Clow#endif 2775b8b8b5dSMarshall Clow 278*f3aed369SNikolas Klauser#if _LIBCPP_STD_VER > 20 279*f3aed369SNikolas Klausertemplate<class _InputIterator, 280*f3aed369SNikolas Klauser class = __enable_if_t<__is_cpp17_input_iterator<_InputIterator>::value>> 281*f3aed369SNikolas Klauserstack(_InputIterator, _InputIterator) 282*f3aed369SNikolas Klauser -> stack<__iter_value_type<_InputIterator>>; 283*f3aed369SNikolas Klauser 284*f3aed369SNikolas Klausertemplate<class _InputIterator, 285*f3aed369SNikolas Klauser class _Alloc, 286*f3aed369SNikolas Klauser class = __enable_if_t<__is_cpp17_input_iterator<_InputIterator>::value>, 287*f3aed369SNikolas Klauser class = __enable_if_t<__is_allocator<_Alloc>::value>> 288*f3aed369SNikolas Klauserstack(_InputIterator, _InputIterator, _Alloc) 289*f3aed369SNikolas Klauser -> stack<__iter_value_type<_InputIterator>, deque<__iter_value_type<_InputIterator>, _Alloc>>; 290*f3aed369SNikolas Klauser#endif 291*f3aed369SNikolas Klauser 2923e519524SHoward Hinnanttemplate <class _Tp, class _Container> 293e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 2943e519524SHoward Hinnantbool 2953e519524SHoward Hinnantoperator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 2963e519524SHoward Hinnant{ 2973e519524SHoward Hinnant return __x.c == __y.c; 2983e519524SHoward Hinnant} 2993e519524SHoward Hinnant 3003e519524SHoward Hinnanttemplate <class _Tp, class _Container> 301e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 3023e519524SHoward Hinnantbool 3033e519524SHoward Hinnantoperator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3043e519524SHoward Hinnant{ 3053e519524SHoward Hinnant return __x.c < __y.c; 3063e519524SHoward Hinnant} 3073e519524SHoward Hinnant 3083e519524SHoward Hinnanttemplate <class _Tp, class _Container> 309e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 3103e519524SHoward Hinnantbool 3113e519524SHoward Hinnantoperator!=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3123e519524SHoward Hinnant{ 3133e519524SHoward Hinnant return !(__x == __y); 3143e519524SHoward Hinnant} 3153e519524SHoward Hinnant 3163e519524SHoward Hinnanttemplate <class _Tp, class _Container> 317e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 3183e519524SHoward Hinnantbool 3193e519524SHoward Hinnantoperator> (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3203e519524SHoward Hinnant{ 3213e519524SHoward Hinnant return __y < __x; 3223e519524SHoward Hinnant} 3233e519524SHoward Hinnant 3243e519524SHoward Hinnanttemplate <class _Tp, class _Container> 325e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 3263e519524SHoward Hinnantbool 3273e519524SHoward Hinnantoperator>=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3283e519524SHoward Hinnant{ 3293e519524SHoward Hinnant return !(__x < __y); 3303e519524SHoward Hinnant} 3313e519524SHoward Hinnant 3323e519524SHoward Hinnanttemplate <class _Tp, class _Container> 333e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 3343e519524SHoward Hinnantbool 3353e519524SHoward Hinnantoperator<=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3363e519524SHoward Hinnant{ 3373e519524SHoward Hinnant return !(__y < __x); 3383e519524SHoward Hinnant} 3393e519524SHoward Hinnant 3403e519524SHoward Hinnanttemplate <class _Tp, class _Container> 341e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 342b4e88d4dSLouis Dionne__enable_if_t<__is_swappable<_Container>::value, void> 3433e519524SHoward Hinnantswap(stack<_Tp, _Container>& __x, stack<_Tp, _Container>& __y) 344bd0c1600SHoward Hinnant _NOEXCEPT_(_NOEXCEPT_(__x.swap(__y))) 3453e519524SHoward Hinnant{ 3463e519524SHoward Hinnant __x.swap(__y); 3473e519524SHoward Hinnant} 3483e519524SHoward Hinnant 3493e519524SHoward Hinnanttemplate <class _Tp, class _Container, class _Alloc> 350e2f2d1edSEric Fiselierstruct _LIBCPP_TEMPLATE_VIS uses_allocator<stack<_Tp, _Container>, _Alloc> 3513e519524SHoward Hinnant : public uses_allocator<_Container, _Alloc> 3523e519524SHoward Hinnant{ 3533e519524SHoward Hinnant}; 3543e519524SHoward Hinnant 3553e519524SHoward Hinnant_LIBCPP_END_NAMESPACE_STD 3563e519524SHoward Hinnant 3573e519524SHoward Hinnant#endif // _LIBCPP_STACK 358