We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 488aa73 commit 5406532Copy full SHA for 5406532
source/containers.tex
@@ -8942,7 +8942,7 @@
8942
8943
\indexlibrarymember{erase}{hive}%
8944
\begin{itemdecl}
8945
-template<class T, class Allocator, class U>
+template<class T, class Allocator, class U = T>
8946
typename hive<T, Allocator>::size_type
8947
erase(hive<T, Allocator>& c, const U& value);
8948
\end{itemdecl}
@@ -8952,7 +8952,7 @@
8952
\effects
8953
Equivalent to:
8954
\begin{codeblock}
8955
-return erase_if(c, [&](auto& elem) { return elem == value; });
+return erase_if(c, [&](const auto& elem) -> bool { return elem == value; });
8956
\end{codeblock}
8957
\end{itemdescr}
8958
0 commit comments