tmp/tmpaxedzta5/{from.md → to.md}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Equivalent to: `return try_emplace(x).first->second;`
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
-
|
| 11 |
```
|
| 12 |
|
| 13 |
*Effects:* Equivalent to: `return try_emplace(move(x)).first->second;`
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
-
|
| 17 |
-
const
|
| 18 |
```
|
| 19 |
|
| 20 |
*Returns:* A reference to the `mapped_type` corresponding to `x` in
|
| 21 |
`*this`.
|
| 22 |
|
|
|
|
| 1 |
+
#### Element access <a id="map.access">[[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: `return try_emplace(move(x)).first->second;`
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
+
mapped_type& at(const key_type& x);
|
| 17 |
+
const mapped_type& at(const key_type& x) const;
|
| 18 |
```
|
| 19 |
|
| 20 |
*Returns:* A reference to the `mapped_type` corresponding to `x` in
|
| 21 |
`*this`.
|
| 22 |
|