[libcxx-commits] [libcxx] [libc++] Forward more algorithms to the classic algorithms (PR #114674)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 4 08:32:14 PST 2024
================
@@ -25,14 +27,15 @@ _LIBCPP_PUSH_MACROS
_LIBCPP_BEGIN_NAMESPACE_STD
-template <class _Iter, class _Sent, class _BinaryPredicate>
+template <class _Iter, class _Sent, class _Pred, class _Proj>
[[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 _Iter
-__adjacent_find(_Iter __first, _Sent __last, _BinaryPredicate&& __pred) {
+__adjacent_find(_Iter __first, _Sent __last, _Pred& __pred, _Proj& __proj) {
----------------
philnik777 wrote:
We currently do that in almost all algorithms. I think we may want to change that, but that's a separate patch.
https://github.com/llvm/llvm-project/pull/114674
More information about the libcxx-commits
mailing list