[queue.syn] # 23 Containers library [[containers]](./#containers) ## 23.6 Container adaptors [[container.adaptors]](container.adaptors#queue.syn) ### 23.6.2 Header synopsis [queue.syn] [🔗](#header:%3cqueue%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 {// [[queue]](queue "23.6.3 Class template queue"), class template queuetemplate> class queue; templateconstexpr bool operator==(const queue& x, const queue& y); templateconstexpr bool operator!=(const queue& x, const queue& y); templateconstexpr bool operator< (const queue& x, const queue& y); templateconstexpr bool operator> (const queue& x, const queue& y); templateconstexpr bool operator<=(const queue& x, const queue& y); templateconstexpr bool operator>=(const queue& x, const queue& y); templateconstexpr compare_three_way_result_toperator<=>(const queue& x, const queue& y); templateconstexpr void swap(queue& x, queue& 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 queuetemplate Container>struct formatter, charT>; // [[priority.queue]](priority.queue "23.6.4 Class template priority_­queue"), class template priority_queuetemplate, class Compare = less>class priority_queue; templateconstexpr void swap(priority_queue& x, priority_queue& 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 priority_queuetemplate Container, class Compare>struct formatter, charT>;}