Skip to content

Commit 5406532

Browse files
burblebeetkoeppe
authored andcommitted
LWG4233 The helper lambda of std::erase for hive should specify return type as bool
1 parent 488aa73 commit 5406532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/containers.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8942,7 +8942,7 @@
89428942

89438943
\indexlibrarymember{erase}{hive}%
89448944
\begin{itemdecl}
8945-
template<class T, class Allocator, class U>
8945+
template<class T, class Allocator, class U = T>
89468946
typename hive<T, Allocator>::size_type
89478947
erase(hive<T, Allocator>& c, const U& value);
89488948
\end{itemdecl}
@@ -8952,7 +8952,7 @@
89528952
\effects
89538953
Equivalent to:
89548954
\begin{codeblock}
8955-
return erase_if(c, [&](auto& elem) { return elem == value; });
8955+
return erase_if(c, [&](const auto& elem) -> bool { return elem == value; });
89568956
\end{codeblock}
89578957
\end{itemdescr}
89588958

0 commit comments

Comments
 (0)