[libcxx-commits] [libcxx] [libc++] Optimize search_n (PR #171389)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Dec 18 08:34:30 PST 2025
================
@@ -68,44 +64,45 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair<_Iter, _Iter> __search_
}
}
-template <class _AlgPolicy, class _Pred, class _Iter, class _Sent, class _SizeT, class _Type, class _Proj, class _DiffT>
+template <class _RAIter, class _Pred, class _Proj, class _ValueT>
----------------
ldionne wrote:
```suggestion
// Finds the last element in the range that does not satisfy the predicate.
template <class _RAIter, class _Pred, class _Proj, class _ValueT>
```
https://github.com/llvm/llvm-project/pull/171389
More information about the libcxx-commits
mailing list