[stack.syn] # 23 Containers library [[containers]](./#containers) ## 23.6 Container adaptors [[container.adaptors]](container.adaptors#stack.syn) ### 23.6.5 Header synopsis [stack.syn] [🔗](#header:%3cstack%3e) #include // see [[compare.syn]](compare.syn "17.12.1 Header synopsis")#include // see [[initializer.list.syn]](initializer.list.syn "17.11.2 Header synopsis")namespace std {// [[stack]](stack "23.6.6 Class template stack"), class template stacktemplate> class stack; templateconstexpr bool operator==(const stack& x, const stack& y); templateconstexpr bool operator!=(const stack& x, const stack& y); templateconstexpr bool operator< (const stack& x, const stack& y); templateconstexpr bool operator> (const stack& x, const stack& y); templateconstexpr bool operator<=(const stack& x, const stack& y); templateconstexpr bool operator>=(const stack& x, const stack& y); templateconstexpr compare_three_way_result_toperator<=>(const stack& x, const stack& y); templateconstexpr void swap(stack& x, stack& y)noexcept(noexcept(x.swap(y))); templatestruct uses_allocator, Alloc>; // [[container.adaptors.format]](container.adaptors.format "23.6.13 Container adaptors formatting"), formatter specialization for stacktemplate Container>struct formatter, charT>;}