2.6 KiB
[associative.set.syn]
23 Containers library [containers]
23.4 Associative containers [associative]
23.4.5 Header synopsis [associative.set.syn]
#include // see [compare.syn]#include <initializer_list> // see [initializer.list.syn]namespace std {// [set], class template settemplate<class Key, class Compare = less, class Allocator = allocator>class set; template<class Key, class Compare, class Allocator>constexpr bool operator==(const set<Key, Compare, Allocator>& x, const set<Key, Compare, Allocator>& y); template<class Key, class Compare, class Allocator>constexpr synth-three-way-result operator<=>(const set<Key, Compare, Allocator>& x, const set<Key, Compare, Allocator>& y); template<class Key, class Compare, class Allocator>constexpr void swap(set<Key, Compare, Allocator>& x, set<Key, Compare, Allocator>& y)noexcept(noexcept(x.swap(y))); // [set.erasure], erasure for settemplate<class Key, class Compare, class Allocator, class Predicate>constexpr typename set<Key, Compare, Allocator>::size_type erase_if(set<Key, Compare, Allocator>& c, Predicate pred); // [multiset], class template multisettemplate<class Key, class Compare = less, class Allocator = allocator>class multiset; template<class Key, class Compare, class Allocator>constexpr bool operator==(const multiset<Key, Compare, Allocator>& x, const multiset<Key, Compare, Allocator>& y); template<class Key, class Compare, class Allocator>constexpr synth-three-way-resultoperator<=>(const multiset<Key, Compare, Allocator>& x, const multiset<Key, Compare, Allocator>& y); template<class Key, class Compare, class Allocator>constexpr void swap(multiset<Key, Compare, Allocator>& x, multiset<Key, Compare, Allocator>& y)noexcept(noexcept(x.swap(y))); // [multiset.erasure], erasure for multisettemplate<class Key, class Compare, class Allocator, class Predicate>constexpr typename multiset<Key, Compare, Allocator>::size_type erase_if(multiset<Key, Compare, Allocator>& c, Predicate pred); namespace pmr {template<class Key, class Compare = less>using set = std::set<Key, Compare, polymorphic_allocator>; template<class Key, class Compare = less>using multiset = std::multiset<Key, Compare, polymorphic_allocator>; }}