tmp/tmpkphrmgdn/{from.md → to.md}
RENAMED
|
@@ -2,11 +2,11 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
#include <initializer_list>
|
| 5 |
|
| 6 |
namespace std {
|
| 7 |
-
|
| 8 |
template <class Key, class Compare = less<Key>,
|
| 9 |
class Allocator = allocator<Key>>
|
| 10 |
class set;
|
| 11 |
template <class Key, class Compare, class Allocator>
|
| 12 |
bool operator==(const set<Key, Compare, Allocator>& x,
|
|
@@ -26,12 +26,14 @@ namespace std {
|
|
| 26 |
template <class Key, class Compare, class Allocator>
|
| 27 |
bool operator<=(const set<Key, Compare, Allocator>& x,
|
| 28 |
const set<Key, Compare, Allocator>& y);
|
| 29 |
template <class Key, class Compare, class Allocator>
|
| 30 |
void swap(set<Key, Compare, Allocator>& x,
|
| 31 |
-
set<Key,Compare,Allocator>& y)
|
|
|
|
| 32 |
|
|
|
|
| 33 |
template <class Key, class Compare = less<Key>,
|
| 34 |
class Allocator = allocator<Key>>
|
| 35 |
class multiset;
|
| 36 |
template <class Key, class Compare, class Allocator>
|
| 37 |
bool operator==(const multiset<Key, Compare, Allocator>& x,
|
|
@@ -51,9 +53,20 @@ namespace std {
|
|
| 51 |
template <class Key, class Compare, class Allocator>
|
| 52 |
bool operator<=(const multiset<Key, Compare, Allocator>& x,
|
| 53 |
const multiset<Key, Compare, Allocator>& y);
|
| 54 |
template <class Key, class Compare, class Allocator>
|
| 55 |
void swap(multiset<Key, Compare, Allocator>& x,
|
| 56 |
-
multiset<Key,Compare,Allocator>& y)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
}
|
| 58 |
```
|
| 59 |
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
#include <initializer_list>
|
| 5 |
|
| 6 |
namespace std {
|
| 7 |
+
// [set], class template set
|
| 8 |
template <class Key, class Compare = less<Key>,
|
| 9 |
class Allocator = allocator<Key>>
|
| 10 |
class set;
|
| 11 |
template <class Key, class Compare, class Allocator>
|
| 12 |
bool operator==(const set<Key, Compare, Allocator>& x,
|
|
|
|
| 26 |
template <class Key, class Compare, class Allocator>
|
| 27 |
bool operator<=(const set<Key, Compare, Allocator>& x,
|
| 28 |
const set<Key, Compare, Allocator>& y);
|
| 29 |
template <class Key, class Compare, class Allocator>
|
| 30 |
void swap(set<Key, Compare, Allocator>& x,
|
| 31 |
+
set<Key, Compare, Allocator>& y)
|
| 32 |
+
noexcept(noexcept(x.swap(y)));
|
| 33 |
|
| 34 |
+
// [multiset], class template multiset
|
| 35 |
template <class Key, class Compare = less<Key>,
|
| 36 |
class Allocator = allocator<Key>>
|
| 37 |
class multiset;
|
| 38 |
template <class Key, class Compare, class Allocator>
|
| 39 |
bool operator==(const multiset<Key, Compare, Allocator>& x,
|
|
|
|
| 53 |
template <class Key, class Compare, class Allocator>
|
| 54 |
bool operator<=(const multiset<Key, Compare, Allocator>& x,
|
| 55 |
const multiset<Key, Compare, Allocator>& y);
|
| 56 |
template <class Key, class Compare, class Allocator>
|
| 57 |
void swap(multiset<Key, Compare, Allocator>& x,
|
| 58 |
+
multiset<Key, Compare, Allocator>& y)
|
| 59 |
+
noexcept(noexcept(x.swap(y)));
|
| 60 |
+
|
| 61 |
+
namespace pmr {
|
| 62 |
+
template <class Key, class Compare = less<Key>>
|
| 63 |
+
using set = std::set<Key, Compare,
|
| 64 |
+
polymorphic_allocator<Key>>;
|
| 65 |
+
|
| 66 |
+
template <class Key, class Compare = less<Key>>
|
| 67 |
+
using multiset = std::multiset<Key, Compare,
|
| 68 |
+
polymorphic_allocator<Key>>;
|
| 69 |
+
}
|
| 70 |
}
|
| 71 |
```
|
| 72 |
|