tmp/tmp2dd4un3w/{from.md → to.md}
RENAMED
|
@@ -5,31 +5,31 @@ T& operator[](const key_type& x);
|
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* If there is no key equivalent to `x` in the map, inserts
|
| 8 |
`value_type(x, T())` into the map.
|
| 9 |
|
| 10 |
-
*Requires:* `key_type` shall be `
|
| 11 |
-
|
| 12 |
|
| 13 |
*Returns:* A reference to the `mapped_type` corresponding to `x` in
|
| 14 |
`*this`.
|
| 15 |
|
| 16 |
-
*Complexity:*
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
T& operator[](key_type&& x);
|
| 20 |
```
|
| 21 |
|
| 22 |
*Effects:* If there is no key equivalent to `x` in the map, inserts
|
| 23 |
`value_type(std::move(x), T())` into the map.
|
| 24 |
|
| 25 |
-
*Requires:* `mapped_type` shall be `
|
| 26 |
|
| 27 |
*Returns:* A reference to the `mapped_type` corresponding to `x` in
|
| 28 |
`*this`.
|
| 29 |
|
| 30 |
-
*Complexity:*
|
| 31 |
|
| 32 |
``` cpp
|
| 33 |
T& at(const key_type& x);
|
| 34 |
const T& at(const key_type& x) const;
|
| 35 |
```
|
|
@@ -38,7 +38,7 @@ const T& at(const key_type& x) const;
|
|
| 38 |
`*this`.
|
| 39 |
|
| 40 |
*Throws:* An exception object of type `out_of_range` if no such element
|
| 41 |
is present.
|
| 42 |
|
| 43 |
-
*Complexity:*
|
| 44 |
|
|
|
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* If there is no key equivalent to `x` in the map, inserts
|
| 8 |
`value_type(x, T())` into the map.
|
| 9 |
|
| 10 |
+
*Requires:* `key_type` shall be `CopyInsertable` and `mapped_type` shall
|
| 11 |
+
be `DefaultInsertable` into `*this`.
|
| 12 |
|
| 13 |
*Returns:* A reference to the `mapped_type` corresponding to `x` in
|
| 14 |
`*this`.
|
| 15 |
|
| 16 |
+
*Complexity:* Logarithmic.
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
T& operator[](key_type&& x);
|
| 20 |
```
|
| 21 |
|
| 22 |
*Effects:* If there is no key equivalent to `x` in the map, inserts
|
| 23 |
`value_type(std::move(x), T())` into the map.
|
| 24 |
|
| 25 |
+
*Requires:* `mapped_type` shall be `DefaultInsertable` into `*this`.
|
| 26 |
|
| 27 |
*Returns:* A reference to the `mapped_type` corresponding to `x` in
|
| 28 |
`*this`.
|
| 29 |
|
| 30 |
+
*Complexity:* Logarithmic.
|
| 31 |
|
| 32 |
``` cpp
|
| 33 |
T& at(const key_type& x);
|
| 34 |
const T& at(const key_type& x) const;
|
| 35 |
```
|
|
|
|
| 38 |
`*this`.
|
| 39 |
|
| 40 |
*Throws:* An exception object of type `out_of_range` if no such element
|
| 41 |
is present.
|
| 42 |
|
| 43 |
+
*Complexity:* Logarithmic.
|
| 44 |
|