tmp/tmpwm_za2gz/{from.md → to.md}
RENAMED
|
@@ -8,11 +8,12 @@ mapped_type& operator[](const key_type& k);
|
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
mapped_type& operator[](key_type&& k);
|
| 11 |
```
|
| 12 |
|
| 13 |
-
*Effects:* Equivalent to:
|
|
|
|
| 14 |
|
| 15 |
``` cpp
|
| 16 |
mapped_type& at(const key_type& k);
|
| 17 |
const mapped_type& at(const key_type& k) const;
|
| 18 |
```
|
|
|
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
mapped_type& operator[](key_type&& k);
|
| 11 |
```
|
| 12 |
|
| 13 |
+
*Effects:* Equivalent to:
|
| 14 |
+
`return try_emplace(std::move(k)).first->second;`
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
mapped_type& at(const key_type& k);
|
| 18 |
const mapped_type& at(const key_type& k) const;
|
| 19 |
```
|