From Jason Turner

[list.syn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpc_0y9nye/{from.md → to.md} +13 -10
tmp/tmpc_0y9nye/{from.md → to.md} RENAMED
@@ -1,29 +1,32 @@
1
  ### Header `<list>` synopsis <a id="list.syn">[[list.syn]]</a>
2
 
3
  ``` cpp
4
- #include <initializer_list>
 
5
 
6
  namespace std {
7
  // [list], class template list
8
  template<class T, class Allocator = allocator<T>> class list;
 
9
  template<class T, class Allocator>
10
  bool operator==(const list<T, Allocator>& x, const list<T, Allocator>& y);
11
  template<class T, class Allocator>
12
- bool operator< (const list<T, Allocator>& x, const list<T, Allocator>& y);
13
- template <class T, class Allocator>
14
- bool operator!=(const list<T, Allocator>& x, const list<T, Allocator>& y);
15
- template <class T, class Allocator>
16
- bool operator> (const list<T, Allocator>& x, const list<T, Allocator>& y);
17
- template <class T, class Allocator>
18
- bool operator>=(const list<T, Allocator>& x, const list<T, Allocator>& y);
19
- template <class T, class Allocator>
20
- bool operator<=(const list<T, Allocator>& x, const list<T, Allocator>& y);
21
  template<class T, class Allocator>
22
  void swap(list<T, Allocator>& x, list<T, Allocator>& y)
23
  noexcept(noexcept(x.swap(y)));
24
 
 
 
 
 
 
 
 
25
  namespace pmr {
26
  template<class T>
27
  using list = std::list<T, polymorphic_allocator<T>>;
28
  }
29
  }
 
1
  ### Header `<list>` synopsis <a id="list.syn">[[list.syn]]</a>
2
 
3
  ``` cpp
4
+ #include <compare> // see [compare.syn]
5
+ #include <initializer_list> // see [initializer.list.syn]
6
 
7
  namespace std {
8
  // [list], class template list
9
  template<class T, class Allocator = allocator<T>> class list;
10
+
11
  template<class T, class Allocator>
12
  bool operator==(const list<T, Allocator>& x, const list<T, Allocator>& y);
13
  template<class T, class Allocator>
14
+ synth-three-way-result<T> operator<=>(const list<T, Allocator>& x,
15
+ \itcorr const list<T, Allocator>& y);
16
+
 
 
 
 
 
 
17
  template<class T, class Allocator>
18
  void swap(list<T, Allocator>& x, list<T, Allocator>& y)
19
  noexcept(noexcept(x.swap(y)));
20
 
21
+ template<class T, class Allocator, class U>
22
+ typename list<T, Allocator>::size_type
23
+ erase(list<T, Allocator>& c, const U& value);
24
+ template<class T, class Allocator, class Predicate>
25
+ typename list<T, Allocator>::size_type
26
+ erase_if(list<T, Allocator>& c, Predicate pred);
27
+
28
  namespace pmr {
29
  template<class T>
30
  using list = std::list<T, polymorphic_allocator<T>>;
31
  }
32
  }