File tree Expand file tree Collapse file tree 1 file changed +3
-31
lines changed Expand file tree Collapse file tree 1 file changed +3
-31
lines changed Original file line number Diff line number Diff line change 3227
3227
\end{itemdecl}
3228
3228
3229
3229
\begin{itemdescr}
3230
- \pnum
3231
- \result
3232
- \tcode{iterator}
3233
-
3234
3230
\pnum
3235
3231
\effects
3236
- Equivalent to \tcode{a.emplace(std::forward<Args>(args)...)},
3232
+ Equivalent to: \tcode{return a.emplace(std::forward<Args>(args)...).first },
3237
3233
except that the element is inserted as close as possible to
3238
3234
the position just prior to \tcode{p}.
3239
3235
3240
- \pnum
3241
- \returns
3242
- An iterator pointing to the element
3243
- with the key equivalent to the newly inserted element.
3244
-
3245
3236
\pnum
3246
3237
\complexity
3247
3238
Logarithmic in general, but
4937
4928
\end{itemdecl}
4938
4929
4939
4930
\begin{itemdescr}
4940
- \pnum
4941
- \result
4942
- \tcode{iterator}
4943
-
4944
- \pnum
4945
- \expects
4946
- \tcode{value_type} is
4947
- \oldconcept{EmplaceConstructible} into \tcode{X} from \tcode{args}.
4948
-
4949
4931
\pnum
4950
4932
\effects
4951
- Equivalent to \tcode{a.emplace(std::forward<Args>(args)...)}.
4952
-
4953
- \pnum
4954
- \returns
4955
- An iterator pointing to the element
4956
- with the key equivalent to the newly inserted element.
4957
- The \tcode{const_iterator} \tcode{p} is a hint
4933
+ Equivalent to: \tcode{return a.emplace(std::forward<Args>(args)...).first},
4934
+ expect that the \tcode{const_iterator} \tcode{p} is an ignorable hint
4958
4935
pointing to where the search should start.
4959
- Implementations are permitted to ignore the hint.
4960
-
4961
- \pnum
4962
- \complexity
4963
- Average case \bigoh{1}, worst case \bigoh{\tcode{a.size()}}.
4964
4936
\end{itemdescr}
4965
4937
4966
4938
\indexunordmem{insert}%
You can’t perform that action at this time.
0 commit comments