tmp/tmpg_dn553r/{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 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,
|
|
@@ -26,12 +26,14 @@ namespace std {
|
|
| 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 |
|
|
|
|
| 33 |
template <class Key, class T, class Compare = less<Key>,
|
| 34 |
class Allocator = allocator<pair<const Key, T>>>
|
| 35 |
class multimap;
|
| 36 |
template <class Key, class T, class Compare, class Allocator>
|
| 37 |
bool operator==(const multimap<Key, T, Compare, Allocator>& x,
|
|
@@ -51,9 +53,20 @@ namespace std {
|
|
| 51 |
template <class Key, class T, class Compare, class Allocator>
|
| 52 |
bool operator<=(const multimap<Key, T, Compare, Allocator>& x,
|
| 53 |
const multimap<Key, T, Compare, Allocator>& y);
|
| 54 |
template <class Key, class T, class Compare, class Allocator>
|
| 55 |
void swap(multimap<Key, T, Compare, Allocator>& x,
|
| 56 |
-
multimap<Key,T,Compare,Allocator>& y)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
}
|
| 58 |
```
|
| 59 |
|
|
|
|
| 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,
|
|
|
|
| 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,
|
|
|
|
| 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 |
+
|
| 66 |
+
template <class Key, class T, class Compare = less<Key>>
|
| 67 |
+
using multimap = std::multimap<Key, T, Compare,
|
| 68 |
+
polymorphic_allocator<pair<const Key, T>>>;
|
| 69 |
+
}
|
| 70 |
}
|
| 71 |
```
|
| 72 |
|