Skip to content

Commit 82ecf43

Browse files
authored
[flat.map.modifiers] Fix erroneous "try_emplace_hint" (#6238)
The hint-taking operation is instead an overload of try_emplace.
1 parent 413b147 commit 82ecf43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/containers.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15623,7 +15623,7 @@
1562315623
\end{codeblock}
1562415624
for the first two overloads or
1562515625
\begin{codeblock}
15626-
try_emplace_hint(hint, std::forward<decltype(k)>(k), std::forward<M>(obj))
15626+
try_emplace(hint, std::forward<decltype(k)>(k), std::forward<M>(obj))
1562715627
\end{codeblock}
1562815628
for the last two overloads.
1562915629

@@ -15674,11 +15674,11 @@
1567415674
assigns \tcode{std::forward<\linebreak M>(obj)} to \tcode{e.second}.
1567515675
Otherwise, equivalent to
1567615676
\begin{codeblock}
15677-
try_emplace(std::forward<decltype(k)>(k), std::forward<M>(obj))
15677+
try_emplace(std::forward<K>(k), std::forward<M>(obj))
1567815678
\end{codeblock}
1567915679
for the first overload or
1568015680
\begin{codeblock}
15681-
try_emplace_hint(hint, std::forward<decltype(k)>(k), std::forward<M>(obj))
15681+
try_emplace(hint, std::forward<K>(k), std::forward<M>(obj))
1568215682
\end{codeblock}
1568315683
for the second overload.
1568415684

0 commit comments

Comments
 (0)