Skip to content

Commit a4e485e

Browse files
committed
[container.requirements] Simplify Returns specification for try_emplace
1 parent 1abf091 commit a4e485e

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

source/containers.tex

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3239,8 +3239,7 @@
32393239

32403240
\pnum
32413241
\returns
3242-
An iterator pointing to the element
3243-
with the key equivalent to the newly inserted element.
3242+
The iterator returned by \tcode{emplace}.
32443243

32453244
\pnum
32463245
\complexity
@@ -4941,26 +4940,16 @@
49414940
\result
49424941
\tcode{iterator}
49434942

4944-
\pnum
4945-
\expects
4946-
\tcode{value_type} is
4947-
\oldconcept{EmplaceConstructible} into \tcode{X} from \tcode{args}.
4948-
49494943
\pnum
49504944
\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
4945+
Equivalent to \tcode{a.emplace(std::forward<Args>(args)...)},
4946+
except that the \tcode{const_iterator} \tcode{p} is a hint
49584947
pointing to where the search should start.
49594948
Implementations are permitted to ignore the hint.
49604949

49614950
\pnum
4962-
\complexity
4963-
Average case \bigoh{1}, worst case \bigoh{\tcode{a.size()}}.
4951+
\returns
4952+
The iterator returned by \tcode{emplace}.
49644953
\end{itemdescr}
49654954

49664955
\indexunordmem{insert}%

0 commit comments

Comments
 (0)