From Jason Turner

[associative.map.syn]

Diff to HTML by rtfpessoa

tmp/tmppbcikcma/{from.md → to.md} RENAMED
@@ -9,48 +9,48 @@ namespace std {
9
  template<class Key, class T, class Compare = less<Key>,
10
  class Allocator = allocator<pair<const Key, T>>>
11
  class map;
12
 
13
  template<class Key, class T, class Compare, class Allocator>
14
- bool operator==(const map<Key, T, Compare, Allocator>& x,
15
  const map<Key, T, Compare, Allocator>& y);
16
  template<class Key, class T, class Compare, class Allocator>
17
- synth-three-way-result<pair<const Key, T>>
18
  operator<=>(const map<Key, T, Compare, Allocator>& x,
19
  const map<Key, T, Compare, Allocator>& y);
20
 
21
  template<class Key, class T, class Compare, class Allocator>
22
- void swap(map<Key, T, Compare, Allocator>& x,
23
  map<Key, T, Compare, Allocator>& y)
24
  noexcept(noexcept(x.swap(y)));
25
 
26
  // [map.erasure], erasure for map
27
  template<class Key, class T, class Compare, class Allocator, class Predicate>
28
- typename map<Key, T, Compare, Allocator>::size_type
29
  erase_if(map<Key, T, Compare, Allocator>& c, Predicate pred);
30
 
31
  // [multimap], class template multimap
32
  template<class Key, class T, class Compare = less<Key>,
33
  class Allocator = allocator<pair<const Key, T>>>
34
  class multimap;
35
 
36
  template<class Key, class T, class Compare, class Allocator>
37
- bool operator==(const multimap<Key, T, Compare, Allocator>& x,
38
  const multimap<Key, T, Compare, Allocator>& y);
39
  template<class Key, class T, class Compare, class Allocator>
40
- synth-three-way-result<pair<const Key, T>>
41
  operator<=>(const multimap<Key, T, Compare, Allocator>& x,
42
  const multimap<Key, T, Compare, Allocator>& y);
43
 
44
  template<class Key, class T, class Compare, class Allocator>
45
- void swap(multimap<Key, T, Compare, Allocator>& x,
46
  multimap<Key, T, Compare, Allocator>& y)
47
  noexcept(noexcept(x.swap(y)));
48
 
49
  // [multimap.erasure], erasure for multimap
50
  template<class Key, class T, class Compare, class Allocator, class Predicate>
51
- typename multimap<Key, T, Compare, Allocator>::size_type
52
  erase_if(multimap<Key, T, Compare, Allocator>& c, Predicate pred);
53
 
54
  namespace pmr {
55
  template<class Key, class T, class Compare = less<Key>>
56
  using map = std::map<Key, T, Compare,
 
9
  template<class Key, class T, class Compare = less<Key>,
10
  class Allocator = allocator<pair<const Key, T>>>
11
  class map;
12
 
13
  template<class Key, class T, class Compare, class Allocator>
14
+ constexpr bool operator==(const map<Key, T, Compare, Allocator>& x,
15
  const map<Key, T, Compare, Allocator>& y);
16
  template<class Key, class T, class Compare, class Allocator>
17
+ constexpr synth-three-way-result<pair<const Key, T>>
18
  operator<=>(const map<Key, T, Compare, Allocator>& x,
19
  const map<Key, T, Compare, Allocator>& y);
20
 
21
  template<class Key, class T, class Compare, class Allocator>
22
+ constexpr void swap(map<Key, T, Compare, Allocator>& x,
23
  map<Key, T, Compare, Allocator>& y)
24
  noexcept(noexcept(x.swap(y)));
25
 
26
  // [map.erasure], erasure for map
27
  template<class Key, class T, class Compare, class Allocator, class Predicate>
28
+ constexpr typename map<Key, T, Compare, Allocator>::size_type
29
  erase_if(map<Key, T, Compare, Allocator>& c, Predicate pred);
30
 
31
  // [multimap], class template multimap
32
  template<class Key, class T, class Compare = less<Key>,
33
  class Allocator = allocator<pair<const Key, T>>>
34
  class multimap;
35
 
36
  template<class Key, class T, class Compare, class Allocator>
37
+ constexpr bool operator==(const multimap<Key, T, Compare, Allocator>& x,
38
  const multimap<Key, T, Compare, Allocator>& y);
39
  template<class Key, class T, class Compare, class Allocator>
40
+ constexpr synth-three-way-result<pair<const Key, T>>
41
  operator<=>(const multimap<Key, T, Compare, Allocator>& x,
42
  const multimap<Key, T, Compare, Allocator>& y);
43
 
44
  template<class Key, class T, class Compare, class Allocator>
45
+ constexpr void swap(multimap<Key, T, Compare, Allocator>& x,
46
  multimap<Key, T, Compare, Allocator>& y)
47
  noexcept(noexcept(x.swap(y)));
48
 
49
  // [multimap.erasure], erasure for multimap
50
  template<class Key, class T, class Compare, class Allocator, class Predicate>
51
+ constexpr typename multimap<Key, T, Compare, Allocator>::size_type
52
  erase_if(multimap<Key, T, Compare, Allocator>& c, Predicate pred);
53
 
54
  namespace pmr {
55
  template<class Key, class T, class Compare = less<Key>>
56
  using map = std::map<Key, T, Compare,