[libcxx-commits] [libcxx] [libc++] Introduce one-sided binary search for set_intersection so that it can be completed in sub-linear time for a large class of inputs. (PR #75230)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 23 05:52:23 PDT 2024
================
@@ -85,6 +86,56 @@ struct _IterOps<_ClassicAlgPolicy> {
std::advance(__iter, __count);
}
+ // advance with sentinel, a la std::ranges::advance
+ // it's unclear whether _Iter has a difference_type and whether that's signed, so we play it safe:
----------------
philnik777 wrote:
Yes it has. No need to play it safe.
https://github.com/llvm/llvm-project/pull/75230
More information about the libcxx-commits
mailing list