Skip to content

Commit 558469e

Browse files
use the pedicate binary instead of equality
1 parent 2a7f951 commit 558469e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__algorithm/find_first_of.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _ForwardIterator1 __find_fir
2727
_ForwardIterator2 __last2,
2828
_BinaryPredicate&& __pred) {
2929
return std::find_if(first1, last1, [&](const auto& x) {
30-
return std::any_of(first2, last2, [&](const auto& y) { return x == y; });
30+
return std::any_of(first2, last2, [&](const auto& y) { return __pred(x, y); });
3131
});
3232
}
3333

0 commit comments

Comments
 (0)