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); 44f3aed369SNikolas 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); 50f3aed369SNikolas Klauser template<class InputIterator, class Alloc> 51f3aed369SNikolas 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 69f3aed369SNikolas Klausertemplate<class InputIterator> 70f3aed369SNikolas Klauser stack(InputIterator, InputIterator) -> stack<iter-value-type<InputIterator>>; // since C++23 71f3aed369SNikolas Klauser 725b8b8b5dSMarshall Clowtemplate<class Container, class Allocator> 735b8b8b5dSMarshall Clow stack(Container, Allocator) -> stack<typename Container::value_type, Container>; // C++17 745b8b8b5dSMarshall Clow 75f3aed369SNikolas Klausertemplate<class InputIterator, class Allocator> 76f3aed369SNikolas Klauser stack(InputIterator, InputIterator, Allocator) 77f3aed369SNikolas Klauser -> stack<iter-value-type<InputIterator>, 78f3aed369SNikolas Klauser deque<iter-value-type<InputIterator>, Allocator>>; // since C++23 79f3aed369SNikolas 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 101385cc25aSLouis Dionne#include <__assert> // all public C++ headers provide the assertion handler 1023e519524SHoward Hinnant#include <__config> 103f3aed369SNikolas Klauser#include <__iterator/iterator_traits.h> 104050b064fSChristopher Di Bella#include <__memory/uses_allocator.h> 1056adbc83eSChristopher Di Bella#include <__utility/forward.h> 1063e519524SHoward Hinnant#include <deque> 107f3aed369SNikolas Klauser#include <type_traits> 108bd6e6846SMark de Wever#include <version> 1093e519524SHoward Hinnant 110*db1978b6SNikolas Klauser// standard-mandated includes 111*db1978b6SNikolas Klauser#include <compare> 112*db1978b6SNikolas Klauser#include <initializer_list> 113*db1978b6SNikolas Klauser 114073458b1SHoward Hinnant#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 1153e519524SHoward Hinnant# pragma GCC system_header 116073458b1SHoward Hinnant#endif 1173e519524SHoward Hinnant 1183e519524SHoward Hinnant_LIBCPP_BEGIN_NAMESPACE_STD 1193e519524SHoward Hinnant 120e2f2d1edSEric Fiseliertemplate <class _Tp, class _Container = deque<_Tp> > class _LIBCPP_TEMPLATE_VIS stack; 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 1273e519524SHoward Hinnanttemplate <class _Tp, class _Container> 128aeb85680SHoward Hinnant_LIBCPP_INLINE_VISIBILITY 1293e519524SHoward Hinnantbool 1303e519524SHoward Hinnantoperator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y); 1313e519524SHoward Hinnant 1323afa22a3SMarshall Clowtemplate <class _Tp, class _Container /*= deque<_Tp>*/> 133e2f2d1edSEric Fiselierclass _LIBCPP_TEMPLATE_VIS stack 1343e519524SHoward Hinnant{ 1353e519524SHoward Hinnantpublic: 1363e519524SHoward Hinnant typedef _Container container_type; 1373e519524SHoward Hinnant typedef typename container_type::value_type value_type; 1383e519524SHoward Hinnant typedef typename container_type::reference reference; 1393e519524SHoward Hinnant typedef typename container_type::const_reference const_reference; 1403e519524SHoward Hinnant typedef typename container_type::size_type size_type; 141c1fe2c43SMarshall Clow static_assert((is_same<_Tp, value_type>::value), "" ); 1423e519524SHoward Hinnant 1433e519524SHoward Hinnantprotected: 1443e519524SHoward Hinnant container_type c; 1453e519524SHoward Hinnant 1463e519524SHoward Hinnantpublic: 147e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 148bd0c1600SHoward Hinnant stack() 149bd0c1600SHoward Hinnant _NOEXCEPT_(is_nothrow_default_constructible<container_type>::value) 150bd0c1600SHoward Hinnant : c() {} 151bd0c1600SHoward Hinnant 152bd0c1600SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 153bd0c1600SHoward Hinnant stack(const stack& __q) : c(__q.c) {} 154bd0c1600SHoward Hinnant 1557196ee31SEric Fiselier _LIBCPP_INLINE_VISIBILITY 1567196ee31SEric Fiselier stack& operator=(const stack& __q) {c = __q.c; return *this;} 1577196ee31SEric Fiselier 1587196ee31SEric Fiselier 1597196ee31SEric Fiselier#ifndef _LIBCPP_CXX03_LANG 160bd0c1600SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 161bd0c1600SHoward Hinnant stack(stack&& __q) 162bd0c1600SHoward Hinnant _NOEXCEPT_(is_nothrow_move_constructible<container_type>::value) 163ce48a113SHoward Hinnant : c(_VSTD::move(__q.c)) {} 164bd0c1600SHoward Hinnant 165bd0c1600SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 166bd0c1600SHoward Hinnant stack& operator=(stack&& __q) 167bd0c1600SHoward Hinnant _NOEXCEPT_(is_nothrow_move_assignable<container_type>::value) 168ce48a113SHoward Hinnant {c = _VSTD::move(__q.c); return *this;} 1697196ee31SEric Fiselier 1707196ee31SEric Fiselier _LIBCPP_INLINE_VISIBILITY 1717196ee31SEric Fiselier explicit stack(container_type&& __c) : c(_VSTD::move(__c)) {} 1727196ee31SEric Fiselier#endif // _LIBCPP_CXX03_LANG 173bd0c1600SHoward Hinnant 174e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1753e519524SHoward Hinnant explicit stack(const container_type& __c) : c(__c) {} 1767196ee31SEric Fiselier 1773e519524SHoward Hinnant template <class _Alloc> 178e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1793e519524SHoward Hinnant explicit stack(const _Alloc& __a, 180b4e88d4dSLouis Dionne __enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0) 1813e519524SHoward Hinnant : c(__a) {} 1823e519524SHoward Hinnant template <class _Alloc> 183e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1843e519524SHoward Hinnant stack(const container_type& __c, const _Alloc& __a, 185b4e88d4dSLouis Dionne __enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0) 1863e519524SHoward Hinnant : c(__c, __a) {} 1873e519524SHoward Hinnant template <class _Alloc> 188e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1893e519524SHoward Hinnant stack(const stack& __s, const _Alloc& __a, 190b4e88d4dSLouis Dionne __enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0) 1913e519524SHoward Hinnant : c(__s.c, __a) {} 1927196ee31SEric Fiselier#ifndef _LIBCPP_CXX03_LANG 1933e519524SHoward Hinnant template <class _Alloc> 194e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 1953e519524SHoward Hinnant stack(container_type&& __c, const _Alloc& __a, 196b4e88d4dSLouis Dionne __enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0) 197ce48a113SHoward Hinnant : c(_VSTD::move(__c), __a) {} 1983e519524SHoward Hinnant template <class _Alloc> 199e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2003e519524SHoward Hinnant stack(stack&& __s, const _Alloc& __a, 201b4e88d4dSLouis Dionne __enable_if_t<uses_allocator<container_type, _Alloc>::value>* = 0) 202ce48a113SHoward Hinnant : c(_VSTD::move(__s.c), __a) {} 2037196ee31SEric Fiselier#endif // _LIBCPP_CXX03_LANG 2043e519524SHoward Hinnant 205f3aed369SNikolas Klauser#if _LIBCPP_STD_VER > 20 206f3aed369SNikolas Klauser template <class _InputIterator, 207f3aed369SNikolas Klauser class = __enable_if_t<__is_cpp17_input_iterator<_InputIterator>::value>> 208f3aed369SNikolas Klauser _LIBCPP_HIDE_FROM_ABI 209f3aed369SNikolas Klauser stack(_InputIterator __first, _InputIterator __last) : c(__first, __last) {} 210f3aed369SNikolas Klauser 211f3aed369SNikolas Klauser template <class _InputIterator, 212f3aed369SNikolas Klauser class _Alloc, 213f3aed369SNikolas Klauser class = __enable_if_t<__is_cpp17_input_iterator<_InputIterator>::value>, 214f3aed369SNikolas Klauser class = __enable_if_t<uses_allocator<container_type, _Alloc>::value>> 215f3aed369SNikolas Klauser _LIBCPP_HIDE_FROM_ABI 216f3aed369SNikolas Klauser stack(_InputIterator __first, _InputIterator __last, const _Alloc& __alloc) : c(__first, __last, __alloc) {} 217f3aed369SNikolas Klauser#endif 218f3aed369SNikolas Klauser 21972c8fad4SMarshall Clow _LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_INLINE_VISIBILITY 2203e519524SHoward Hinnant bool empty() const {return c.empty();} 221e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2223e519524SHoward Hinnant size_type size() const {return c.size();} 223e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2243e519524SHoward Hinnant reference top() {return c.back();} 225e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2263e519524SHoward Hinnant const_reference top() const {return c.back();} 2273e519524SHoward Hinnant 228e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2293e519524SHoward Hinnant void push(const value_type& __v) {c.push_back(__v);} 2307196ee31SEric Fiselier#ifndef _LIBCPP_CXX03_LANG 231e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 232ce48a113SHoward Hinnant void push(value_type&& __v) {c.push_back(_VSTD::move(__v));} 2337196ee31SEric Fiselier 234e0601335SHoward Hinnant template <class... _Args> 235e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 23663b560beSMarshall Clow#if _LIBCPP_STD_VER > 14 237e34f5ffeSMarshall Clow decltype(auto) emplace(_Args&&... __args) 2380e411641SEric Fiselier { return c.emplace_back(_VSTD::forward<_Args>(__args)...);} 23963b560beSMarshall Clow#else 24063b560beSMarshall Clow void emplace(_Args&&... __args) 24163b560beSMarshall Clow { c.emplace_back(_VSTD::forward<_Args>(__args)...);} 24263b560beSMarshall Clow#endif 2437196ee31SEric Fiselier#endif // _LIBCPP_CXX03_LANG 2447196ee31SEric Fiselier 245e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2463e519524SHoward Hinnant void pop() {c.pop_back();} 2473e519524SHoward Hinnant 248e0601335SHoward Hinnant _LIBCPP_INLINE_VISIBILITY 2493e519524SHoward Hinnant void swap(stack& __s) 250bd0c1600SHoward Hinnant _NOEXCEPT_(__is_nothrow_swappable<container_type>::value) 2513e519524SHoward Hinnant { 252ce48a113SHoward Hinnant using _VSTD::swap; 2533e519524SHoward Hinnant swap(c, __s.c); 2543e519524SHoward Hinnant } 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 template <class T1, class _C1> 2623e519524SHoward Hinnant friend 2633e519524SHoward Hinnant bool 2643e519524SHoward Hinnant operator< (const stack<T1, _C1>& __x, const stack<T1, _C1>& __y); 2653e519524SHoward Hinnant}; 2663e519524SHoward Hinnant 267f3aed369SNikolas Klauser#if _LIBCPP_STD_VER > 14 2685b8b8b5dSMarshall Clowtemplate<class _Container, 2694e0ea2cfSLouis Dionne class = enable_if_t<!__is_allocator<_Container>::value> 2705b8b8b5dSMarshall Clow> 2715b8b8b5dSMarshall Clowstack(_Container) 2725b8b8b5dSMarshall Clow -> stack<typename _Container::value_type, _Container>; 2735b8b8b5dSMarshall Clow 2745b8b8b5dSMarshall Clowtemplate<class _Container, 2755b8b8b5dSMarshall Clow class _Alloc, 2764e0ea2cfSLouis Dionne class = enable_if_t<!__is_allocator<_Container>::value>, 2774e0ea2cfSLouis Dionne class = enable_if_t<uses_allocator<_Container, _Alloc>::value> 2785b8b8b5dSMarshall Clow > 2795b8b8b5dSMarshall Clowstack(_Container, _Alloc) 2805b8b8b5dSMarshall Clow -> stack<typename _Container::value_type, _Container>; 2815b8b8b5dSMarshall Clow#endif 2825b8b8b5dSMarshall Clow 283f3aed369SNikolas Klauser#if _LIBCPP_STD_VER > 20 284f3aed369SNikolas Klausertemplate<class _InputIterator, 285f3aed369SNikolas Klauser class = __enable_if_t<__is_cpp17_input_iterator<_InputIterator>::value>> 286f3aed369SNikolas Klauserstack(_InputIterator, _InputIterator) 287f3aed369SNikolas Klauser -> stack<__iter_value_type<_InputIterator>>; 288f3aed369SNikolas Klauser 289f3aed369SNikolas Klausertemplate<class _InputIterator, 290f3aed369SNikolas Klauser class _Alloc, 291f3aed369SNikolas Klauser class = __enable_if_t<__is_cpp17_input_iterator<_InputIterator>::value>, 292f3aed369SNikolas Klauser class = __enable_if_t<__is_allocator<_Alloc>::value>> 293f3aed369SNikolas Klauserstack(_InputIterator, _InputIterator, _Alloc) 294f3aed369SNikolas Klauser -> stack<__iter_value_type<_InputIterator>, deque<__iter_value_type<_InputIterator>, _Alloc>>; 295f3aed369SNikolas Klauser#endif 296f3aed369SNikolas Klauser 2973e519524SHoward Hinnanttemplate <class _Tp, class _Container> 298e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 2993e519524SHoward Hinnantbool 3003e519524SHoward Hinnantoperator==(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3013e519524SHoward Hinnant{ 3023e519524SHoward Hinnant return __x.c == __y.c; 3033e519524SHoward Hinnant} 3043e519524SHoward Hinnant 3053e519524SHoward Hinnanttemplate <class _Tp, class _Container> 306e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 3073e519524SHoward Hinnantbool 3083e519524SHoward Hinnantoperator< (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3093e519524SHoward Hinnant{ 3103e519524SHoward Hinnant return __x.c < __y.c; 3113e519524SHoward Hinnant} 3123e519524SHoward Hinnant 3133e519524SHoward Hinnanttemplate <class _Tp, class _Container> 314e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 3153e519524SHoward Hinnantbool 3163e519524SHoward Hinnantoperator!=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3173e519524SHoward Hinnant{ 3183e519524SHoward Hinnant return !(__x == __y); 3193e519524SHoward Hinnant} 3203e519524SHoward Hinnant 3213e519524SHoward Hinnanttemplate <class _Tp, class _Container> 322e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 3233e519524SHoward Hinnantbool 3243e519524SHoward Hinnantoperator> (const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3253e519524SHoward Hinnant{ 3263e519524SHoward Hinnant return __y < __x; 3273e519524SHoward Hinnant} 3283e519524SHoward Hinnant 3293e519524SHoward Hinnanttemplate <class _Tp, class _Container> 330e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 3313e519524SHoward Hinnantbool 3323e519524SHoward Hinnantoperator>=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3333e519524SHoward Hinnant{ 3343e519524SHoward Hinnant return !(__x < __y); 3353e519524SHoward Hinnant} 3363e519524SHoward Hinnant 3373e519524SHoward Hinnanttemplate <class _Tp, class _Container> 338e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 3393e519524SHoward Hinnantbool 3403e519524SHoward Hinnantoperator<=(const stack<_Tp, _Container>& __x, const stack<_Tp, _Container>& __y) 3413e519524SHoward Hinnant{ 3423e519524SHoward Hinnant return !(__y < __x); 3433e519524SHoward Hinnant} 3443e519524SHoward Hinnant 3453e519524SHoward Hinnanttemplate <class _Tp, class _Container> 346e0601335SHoward Hinnantinline _LIBCPP_INLINE_VISIBILITY 347b4e88d4dSLouis Dionne__enable_if_t<__is_swappable<_Container>::value, void> 3483e519524SHoward Hinnantswap(stack<_Tp, _Container>& __x, stack<_Tp, _Container>& __y) 349bd0c1600SHoward Hinnant _NOEXCEPT_(_NOEXCEPT_(__x.swap(__y))) 3503e519524SHoward Hinnant{ 3513e519524SHoward Hinnant __x.swap(__y); 3523e519524SHoward Hinnant} 3533e519524SHoward Hinnant 3543e519524SHoward Hinnanttemplate <class _Tp, class _Container, class _Alloc> 355e2f2d1edSEric Fiselierstruct _LIBCPP_TEMPLATE_VIS uses_allocator<stack<_Tp, _Container>, _Alloc> 3563e519524SHoward Hinnant : public uses_allocator<_Container, _Alloc> 3573e519524SHoward Hinnant{ 3583e519524SHoward Hinnant}; 3593e519524SHoward Hinnant 3603e519524SHoward Hinnant_LIBCPP_END_NAMESPACE_STD 3613e519524SHoward Hinnant 3623e519524SHoward Hinnant#endif // _LIBCPP_STACK 363