[associative.set.syn] # 23 Containers library [[containers]](./#containers) ## 23.4 Associative containers [[associative]](associative#set.syn) ### 23.4.5 Header synopsis [associative.set.syn] [🔗](#header:%3cset%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 {// [[set]](set "23.4.6 Class template set"), class template settemplate, class Allocator = allocator>class set; templateconstexpr bool operator==(const set& x, const set& y); templateconstexpr *synth-three-way-result* operator<=>(const set& x, const set& y); templateconstexpr void swap(set& x, set& y)noexcept(noexcept(x.swap(y))); // [[set.erasure]](set.erasure "23.4.6.3 Erasure"), erasure for settemplateconstexpr typename set::size_type erase_if(set& c, Predicate pred); // [[multiset]](multiset "23.4.7 Class template multiset"), class template multisettemplate, class Allocator = allocator>class multiset; templateconstexpr bool operator==(const multiset& x, const multiset& y); templateconstexpr *synth-three-way-result*operator<=>(const multiset& x, const multiset& y); templateconstexpr void swap(multiset& x, multiset& y)noexcept(noexcept(x.swap(y))); // [[multiset.erasure]](multiset.erasure "23.4.7.3 Erasure"), erasure for multisettemplateconstexpr typename multiset::size_type erase_if(multiset& c, Predicate pred); namespace pmr {template>using set = std::set>; template>using multiset = std::multiset>; }}