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