tmp/tmpqpysoe83/{from.md → to.md}
RENAMED
|
@@ -1,5 +1,21 @@
|
|
| 1 |
### In general <a id="associative.general">[[associative.general]]</a>
|
| 2 |
|
| 3 |
The header `<map>` defines the class templates `map` and `multimap`; the
|
| 4 |
header `<set>` defines the class templates `set` and `multiset`.
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
### In general <a id="associative.general">[[associative.general]]</a>
|
| 2 |
|
| 3 |
The header `<map>` defines the class templates `map` and `multimap`; the
|
| 4 |
header `<set>` defines the class templates `set` and `multiset`.
|
| 5 |
|
| 6 |
+
The following exposition-only alias templates may appear in deduction
|
| 7 |
+
guides for associative containers:
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
template<class InputIterator>
|
| 11 |
+
using iter_key_t = remove_const_t<
|
| 12 |
+
typename iterator_traits<InputIterator>::value_type::first_type>; // exposition only
|
| 13 |
+
template<class InputIterator>
|
| 14 |
+
using iter_val_t
|
| 15 |
+
= typename iterator_traits<InputIterator>::value_type::second_type; // exposition only
|
| 16 |
+
template<class InputIterator>
|
| 17 |
+
using iter_to_alloc_t
|
| 18 |
+
= pair<add_const_t<typename iterator_traits<InputIterator>::value_type::first_type>,
|
| 19 |
+
typename iterator_traits<InputIterator>::value_type::second_type>; // exposition only
|
| 20 |
+
```
|
| 21 |
+
|