[associative.map.syn] # 23 Containers library [[containers]](./#containers) ## 23.4 Associative containers [[associative]](associative#map.syn) ### 23.4.2 Header synopsis [associative.map.syn] [🔗](#header:%3cmap%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 {// [[map]](map "23.4.3 Class template map"), class template maptemplate, class Allocator = allocator>>class map; templateconstexpr bool operator==(const map& x, const map& y); templateconstexpr *synth-three-way-result*>operator<=>(const map& x, const map& y); templateconstexpr void swap(map& x, map& y)noexcept(noexcept(x.swap(y))); // [[map.erasure]](map.erasure "23.4.3.5 Erasure"), erasure for maptemplateconstexpr typename map::size_type erase_if(map& c, Predicate pred); // [[multimap]](multimap "23.4.4 Class template multimap"), class template multimaptemplate, class Allocator = allocator>>class multimap; templateconstexpr bool operator==(const multimap& x, const multimap& y); templateconstexpr *synth-three-way-result*>operator<=>(const multimap& x, const multimap& y); templateconstexpr void swap(multimap& x, multimap& y)noexcept(noexcept(x.swap(y))); // [[multimap.erasure]](multimap.erasure "23.4.4.4 Erasure"), erasure for multimaptemplateconstexpr typename multimap::size_type erase_if(multimap& c, Predicate pred); namespace pmr {template>using map = std::map>>; template>using multimap = std::multimap>>; }}