tmp/tmpr5dgl6j9/{from.md → to.md}
RENAMED
|
@@ -3,35 +3,21 @@
|
|
| 3 |
``` cpp
|
| 4 |
template <class P>
|
| 5 |
iterator insert(P&& obj);
|
| 6 |
```
|
| 7 |
|
| 8 |
-
*
|
| 9 |
-
|
| 10 |
-
*Effects:* Inserts `obj` converted to `value_type`.
|
| 11 |
-
|
| 12 |
-
*Returns:* An iterator that points to the element with key equivalent to
|
| 13 |
-
the key of `value_type(obj)`.
|
| 14 |
-
|
| 15 |
-
*Complexity:* Average case 𝑂(1), worst case 𝑂(`size()`).
|
| 16 |
|
| 17 |
*Remarks:* This signature shall not participate in overload resolution
|
| 18 |
-
unless `P` is
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
template <class P>
|
| 22 |
iterator insert(const_iterator hint, P&& obj);
|
| 23 |
```
|
| 24 |
|
| 25 |
-
*
|
| 26 |
-
|
| 27 |
-
*Effects:* Inserts `obj` converted to `value_type`. The iterator `hint`
|
| 28 |
-
is a hint pointing to where the search should start.
|
| 29 |
-
|
| 30 |
-
*Returns:* An iterator that points to the element with key equivalent to
|
| 31 |
-
the key of `value_type(obj)`.
|
| 32 |
-
|
| 33 |
-
*Complexity:* Average case 𝑂(1), worst case 𝑂(`size()`).
|
| 34 |
|
| 35 |
*Remarks:* This signature shall not participate in overload resolution
|
| 36 |
-
unless `P` is
|
| 37 |
|
|
|
|
| 3 |
``` cpp
|
| 4 |
template <class P>
|
| 5 |
iterator insert(P&& obj);
|
| 6 |
```
|
| 7 |
|
| 8 |
+
*Effects:* Equivalent to `return emplace(std::forward<P>(obj))`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
*Remarks:* This signature shall not participate in overload resolution
|
| 11 |
+
unless `std::is_constructible<value_type, P&&>::value` is `true`.
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
template <class P>
|
| 15 |
iterator insert(const_iterator hint, P&& obj);
|
| 16 |
```
|
| 17 |
|
| 18 |
+
*Effects:* Equivalent to
|
| 19 |
+
`return emplace_hint(hint, std::forward<P>(obj))`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
*Remarks:* This signature shall not participate in overload resolution
|
| 22 |
+
unless `std::is_constructible<value_type, P&&>::value` is `true`.
|
| 23 |
|