diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2023-04-17 17:14:23 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2023-07-23 17:38:08 +0000 |
commit | 49071a9c083dd7841f8cdf5a1f7023a945262e2d (patch) | |
tree | 802cd3df44649a54b04f9a19c6dee2fbb131b6d0 /contrib/llvm-project/libcxx/include/__algorithm/ranges_binary_search.h | |
parent | 320d4fb58b6b1c6a0c7ffeab3d4672d1479d5e17 (diff) | |
download | src-49071a9c083dd7841f8cdf5a1f7023a945262e2d.tar.gz src-49071a9c083dd7841f8cdf5a1f7023a945262e2d.zip |
Merge llvm-project release/16.x llvmorg-16.0.1-0-gcd89023f7979
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvmorg-16.0.1-0-gcd89023f7979 (aka 16.0.1 release).
PR: 271047
MFC after: 1 month
(cherry picked from commit 1ac55f4cb0001fed92329746c730aa9a947c09a5)
Diffstat (limited to 'contrib/llvm-project/libcxx/include/__algorithm/ranges_binary_search.h')
-rw-r--r-- | contrib/llvm-project/libcxx/include/__algorithm/ranges_binary_search.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/ranges_binary_search.h b/contrib/llvm-project/libcxx/include/__algorithm/ranges_binary_search.h index b2a8977652fb..d72d4e057401 100644 --- a/contrib/llvm-project/libcxx/include/__algorithm/ranges_binary_search.h +++ b/contrib/llvm-project/libcxx/include/__algorithm/ranges_binary_search.h @@ -36,7 +36,7 @@ struct __fn { _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr bool operator()(_Iter __first, _Sent __last, const _Type& __value, _Comp __comp = {}, _Proj __proj = {}) const { auto __ret = std::__lower_bound_impl<_RangeAlgPolicy>(__first, __last, __value, __comp, __proj); - return __ret != __last && !std::invoke(__comp, __value, std::invoke(__proj, *__first)); + return __ret != __last && !std::invoke(__comp, __value, std::invoke(__proj, *__ret)); } template <forward_range _Range, class _Type, class _Proj = identity, @@ -46,7 +46,7 @@ struct __fn { auto __first = ranges::begin(__r); auto __last = ranges::end(__r); auto __ret = std::__lower_bound_impl<_RangeAlgPolicy>(__first, __last, __value, __comp, __proj); - return __ret != __last && !std::invoke(__comp, __value, std::invoke(__proj, *__first)); + return __ret != __last && !std::invoke(__comp, __value, std::invoke(__proj, *__ret)); } }; } // namespace __binary_search |