From Jason Turner

[associative.map.syn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp3ovke88m/{from.md → to.md} +18 -27
tmp/tmp3ovke88m/{from.md → to.md} RENAMED
@@ -1,65 +1,56 @@
1
  ### Header `<map>` synopsis <a id="associative.map.syn">[[associative.map.syn]]</a>
2
 
3
  ``` cpp
4
- #include <initializer_list>
 
5
 
6
  namespace std {
7
  // [map], class template map
8
  template<class Key, class T, class Compare = less<Key>,
9
  class Allocator = allocator<pair<const Key, T>>>
10
  class map;
 
11
  template<class Key, class T, class Compare, class Allocator>
12
  bool operator==(const map<Key, T, Compare, Allocator>& x,
13
  const map<Key, T, Compare, Allocator>& y);
14
  template<class Key, class T, class Compare, class Allocator>
15
- bool operator< (const map<Key, T, Compare, Allocator>& x,
16
- const map<Key, T, Compare, Allocator>& y);
17
- template <class Key, class T, class Compare, class Allocator>
18
- bool operator!=(const map<Key, T, Compare, Allocator>& x,
19
- const map<Key, T, Compare, Allocator>& y);
20
- template <class Key, class T, class Compare, class Allocator>
21
- bool operator> (const map<Key, T, Compare, Allocator>& x,
22
- const map<Key, T, Compare, Allocator>& y);
23
- template <class Key, class T, class Compare, class Allocator>
24
- bool operator>=(const map<Key, T, Compare, Allocator>& x,
25
- const map<Key, T, Compare, Allocator>& y);
26
- template <class Key, class T, class Compare, class Allocator>
27
- bool operator<=(const map<Key, T, Compare, Allocator>& x,
28
  const map<Key, T, Compare, Allocator>& y);
 
29
  template<class Key, class T, class Compare, class Allocator>
30
  void swap(map<Key, T, Compare, Allocator>& x,
31
  map<Key, T, Compare, Allocator>& y)
32
  noexcept(noexcept(x.swap(y)));
33
 
 
 
 
 
34
  // [multimap], class template multimap
35
  template<class Key, class T, class Compare = less<Key>,
36
  class Allocator = allocator<pair<const Key, T>>>
37
  class multimap;
 
38
  template<class Key, class T, class Compare, class Allocator>
39
  bool operator==(const multimap<Key, T, Compare, Allocator>& x,
40
  const multimap<Key, T, Compare, Allocator>& y);
41
  template<class Key, class T, class Compare, class Allocator>
42
- bool operator< (const multimap<Key, T, Compare, Allocator>& x,
43
- const multimap<Key, T, Compare, Allocator>& y);
44
- template <class Key, class T, class Compare, class Allocator>
45
- bool operator!=(const multimap<Key, T, Compare, Allocator>& x,
46
- const multimap<Key, T, Compare, Allocator>& y);
47
- template <class Key, class T, class Compare, class Allocator>
48
- bool operator> (const multimap<Key, T, Compare, Allocator>& x,
49
- const multimap<Key, T, Compare, Allocator>& y);
50
- template <class Key, class T, class Compare, class Allocator>
51
- bool operator>=(const multimap<Key, T, Compare, Allocator>& x,
52
- const multimap<Key, T, Compare, Allocator>& y);
53
- template <class Key, class T, class Compare, class Allocator>
54
- bool operator<=(const multimap<Key, T, Compare, Allocator>& x,
55
  const multimap<Key, T, Compare, Allocator>& y);
 
56
  template<class Key, class T, class Compare, class Allocator>
57
  void swap(multimap<Key, T, Compare, Allocator>& x,
58
  multimap<Key, T, Compare, Allocator>& y)
59
  noexcept(noexcept(x.swap(y)));
60
 
 
 
 
 
61
  namespace pmr {
62
  template<class Key, class T, class Compare = less<Key>>
63
  using map = std::map<Key, T, Compare,
64
  polymorphic_allocator<pair<const Key, T>>>;
65
 
 
1
  ### Header `<map>` synopsis <a id="associative.map.syn">[[associative.map.syn]]</a>
2
 
3
  ``` cpp
4
+ #include <compare> // see [compare.syn]
5
+ #include <initializer_list> // see [initializer.list.syn]
6
 
7
  namespace std {
8
  // [map], class template map
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
+ template<class Key, class T, class Compare, class Allocator, class Predicate>
27
+ typename map<Key, T, Compare, Allocator>::size_type
28
+ erase_if(map<Key, T, Compare, Allocator>& c, Predicate pred);
29
+
30
  // [multimap], class template multimap
31
  template<class Key, class T, class Compare = less<Key>,
32
  class Allocator = allocator<pair<const Key, T>>>
33
  class multimap;
34
+
35
  template<class Key, class T, class Compare, class Allocator>
36
  bool operator==(const multimap<Key, T, Compare, Allocator>& x,
37
  const multimap<Key, T, Compare, Allocator>& y);
38
  template<class Key, class T, class Compare, class Allocator>
39
+ synth-three-way-result<pair<const Key, T>>
40
+ operator<=>(const multimap<Key, T, Compare, Allocator>& x,
 
 
 
 
 
 
 
 
 
 
 
41
  const multimap<Key, T, Compare, Allocator>& y);
42
+
43
  template<class Key, class T, class Compare, class Allocator>
44
  void swap(multimap<Key, T, Compare, Allocator>& x,
45
  multimap<Key, T, Compare, Allocator>& y)
46
  noexcept(noexcept(x.swap(y)));
47
 
48
+ template<class Key, class T, class Compare, class Allocator, class Predicate>
49
+ typename multimap<Key, T, Compare, Allocator>::size_type
50
+ erase_if(multimap<Key, T, Compare, Allocator>& c, Predicate pred);
51
+
52
  namespace pmr {
53
  template<class Key, class T, class Compare = less<Key>>
54
  using map = std::map<Key, T, Compare,
55
  polymorphic_allocator<pair<const Key, T>>>;
56