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