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 2a7f951 commit 558469eCopy full SHA for 558469e
libcxx/include/__algorithm/find_first_of.h
@@ -27,7 +27,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _ForwardIterator1 __find_fir
27
_ForwardIterator2 __last2,
28
_BinaryPredicate&& __pred) {
29
return std::find_if(first1, last1, [&](const auto& x) {
30
- return std::any_of(first2, last2, [&](const auto& y) { return x == y; });
+ return std::any_of(first2, last2, [&](const auto& y) { return __pred(x, y); });
31
});
32
}
33
0 commit comments