tmp/tmp2mnyrkaf/{from.md → to.md}
RENAMED
|
@@ -1,33 +1,33 @@
|
|
| 1 |
#### Access <a id="flat.map.access">[[flat.map.access]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
mapped_type& operator[](const key_type& x);
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Equivalent to: `return try_emplace(x).first->second;`
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
-
mapped_type& operator[](key_type&& x);
|
| 11 |
```
|
| 12 |
|
| 13 |
*Effects:* Equivalent to:
|
| 14 |
`return try_emplace(std::move(x)).first->second;`
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
-
template<class K> mapped_type& operator[](K&& x);
|
| 18 |
```
|
| 19 |
|
| 20 |
*Constraints:* The *qualified-id* `Compare::is_transparent` is valid and
|
| 21 |
denotes a type.
|
| 22 |
|
| 23 |
*Effects:* Equivalent to:
|
| 24 |
`return try_emplace(std::forward<K>(x)).first->second;`
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
-
mapped_type& at(const key_type& x);
|
| 28 |
-
const mapped_type& at(const key_type& x) const;
|
| 29 |
```
|
| 30 |
|
| 31 |
*Returns:* A reference to the `mapped_type` corresponding to `x` in
|
| 32 |
`*this`.
|
| 33 |
|
|
@@ -35,12 +35,12 @@ const mapped_type& at(const key_type& x) const;
|
|
| 35 |
is present.
|
| 36 |
|
| 37 |
*Complexity:* Logarithmic.
|
| 38 |
|
| 39 |
``` cpp
|
| 40 |
-
template<class K> mapped_type& at(const K& x);
|
| 41 |
-
template<class K> const mapped_type& at(const K& x) const;
|
| 42 |
```
|
| 43 |
|
| 44 |
*Constraints:* The *qualified-id* `Compare::is_transparent` is valid and
|
| 45 |
denotes a type.
|
| 46 |
|
|
|
|
| 1 |
#### Access <a id="flat.map.access">[[flat.map.access]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
constexpr mapped_type& operator[](const key_type& x);
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Equivalent to: `return try_emplace(x).first->second;`
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
+
constexpr mapped_type& operator[](key_type&& x);
|
| 11 |
```
|
| 12 |
|
| 13 |
*Effects:* Equivalent to:
|
| 14 |
`return try_emplace(std::move(x)).first->second;`
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
+
template<class K> constexpr mapped_type& operator[](K&& x);
|
| 18 |
```
|
| 19 |
|
| 20 |
*Constraints:* The *qualified-id* `Compare::is_transparent` is valid and
|
| 21 |
denotes a type.
|
| 22 |
|
| 23 |
*Effects:* Equivalent to:
|
| 24 |
`return try_emplace(std::forward<K>(x)).first->second;`
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
+
constexpr mapped_type& at(const key_type& x);
|
| 28 |
+
constexpr const mapped_type& at(const key_type& x) const;
|
| 29 |
```
|
| 30 |
|
| 31 |
*Returns:* A reference to the `mapped_type` corresponding to `x` in
|
| 32 |
`*this`.
|
| 33 |
|
|
|
|
| 35 |
is present.
|
| 36 |
|
| 37 |
*Complexity:* Logarithmic.
|
| 38 |
|
| 39 |
``` cpp
|
| 40 |
+
template<class K> constexpr mapped_type& at(const K& x);
|
| 41 |
+
template<class K> constexpr const mapped_type& at(const K& x) const;
|
| 42 |
```
|
| 43 |
|
| 44 |
*Constraints:* The *qualified-id* `Compare::is_transparent` is valid and
|
| 45 |
denotes a type.
|
| 46 |
|