From Jason Turner

[unord.multimap.modifiers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpr5dgl6j9/{from.md → to.md} +5 -19
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
- *Requires:* `value_type` is constructible from `std::forward<P>(obj)`.
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 implicitly convertible to `value_type`.
19
 
20
  ``` cpp
21
  template <class P>
22
  iterator insert(const_iterator hint, P&& obj);
23
  ```
24
 
25
- *Requires:* `value_type` is constructible from `std::forward<P>(obj)`.
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 implicitly convertible to `value_type`.
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