tmp/tmpqvy9i6gj/{from.md → to.md}
RENAMED
|
@@ -3,11 +3,11 @@
|
|
| 3 |
``` cpp
|
| 4 |
#include <compare> // see [compare.syn]
|
| 5 |
#include <initializer_list> // see [initializer.list.syn]
|
| 6 |
|
| 7 |
namespace std {
|
| 8 |
-
// [
|
| 9 |
template<class T, class Allocator = allocator<T>> class forward_list;
|
| 10 |
|
| 11 |
template<class T, class Allocator>
|
| 12 |
bool operator==(const forward_list<T, Allocator>& x, const forward_list<T, Allocator>& y);
|
| 13 |
template<class T, class Allocator>
|
|
@@ -16,10 +16,11 @@ namespace std {
|
|
| 16 |
|
| 17 |
template<class T, class Allocator>
|
| 18 |
void swap(forward_list<T, Allocator>& x, forward_list<T, Allocator>& y)
|
| 19 |
noexcept(noexcept(x.swap(y)));
|
| 20 |
|
|
|
|
| 21 |
template<class T, class Allocator, class U>
|
| 22 |
typename forward_list<T, Allocator>::size_type
|
| 23 |
erase(forward_list<T, Allocator>& c, const U& value);
|
| 24 |
template<class T, class Allocator, class Predicate>
|
| 25 |
typename forward_list<T, Allocator>::size_type
|
|
|
|
| 3 |
``` cpp
|
| 4 |
#include <compare> // see [compare.syn]
|
| 5 |
#include <initializer_list> // see [initializer.list.syn]
|
| 6 |
|
| 7 |
namespace std {
|
| 8 |
+
// [forward.list], class template forward_list
|
| 9 |
template<class T, class Allocator = allocator<T>> class forward_list;
|
| 10 |
|
| 11 |
template<class T, class Allocator>
|
| 12 |
bool operator==(const forward_list<T, Allocator>& x, const forward_list<T, Allocator>& y);
|
| 13 |
template<class T, class Allocator>
|
|
|
|
| 16 |
|
| 17 |
template<class T, class Allocator>
|
| 18 |
void swap(forward_list<T, Allocator>& x, forward_list<T, Allocator>& y)
|
| 19 |
noexcept(noexcept(x.swap(y)));
|
| 20 |
|
| 21 |
+
// [forward.list.erasure], erasure
|
| 22 |
template<class T, class Allocator, class U>
|
| 23 |
typename forward_list<T, Allocator>::size_type
|
| 24 |
erase(forward_list<T, Allocator>& c, const U& value);
|
| 25 |
template<class T, class Allocator, class Predicate>
|
| 26 |
typename forward_list<T, Allocator>::size_type
|