[list.syn] # 23 Containers library [[containers]](./#containers) ## 23.3 Sequence containers [[sequences]](sequences#list.syn) ### 23.3.10 Header synopsis [list.syn] [🔗](#header:%3clist%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 {// [[list]](list "23.3.11 Class template list"), class template listtemplate> class list; templateconstexpr bool operator==(const list& x, const list& y); templateconstexpr *synth-three-way-result* operator<=>(const list& x, const list& y); templateconstexpr void swap(list& x, list& y)noexcept(noexcept(x.swap(y))); // [[list.erasure]](list.erasure "23.3.11.6 Erasure"), erasuretemplateconstexpr typename list::size_type erase(list& c, const U& value); templateconstexpr typename list::size_type erase_if(list& c, Predicate pred); namespace pmr {templateusing list = std::list>; }}