[libcxx-commits] [PATCH] D129233: [libc++][ranges] implement `std::ranges::set_intersection`
Konstantin Varlamov via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 7 17:43:29 PDT 2022
var-const added inline comments.
================
Comment at: libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.intersection/ranges_set_intersection.pass.cpp:229
+ {
+ struct NonBorrowedRange {
+ int* data_;
----------------
This class should probably also be moved to the utility header.
================
Comment at: libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.intersection/ranges_set_intersection.pass.cpp:273
+ withAllPermutationsOfInIter1<contiguous_iterator<int*>, OutIter>();
+ return true;
+}
----------------
Unused?
================
Comment at: libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.intersection/ranges_set_intersection.pass.cpp:585
+
+ runAllIteratorPermutationsTests();
+
----------------
You probably need to make this function return `bool` and add a static assertion here, similar to how `test` is invoked twice above. If there's a reason not to, please add it as a comment.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129233/new/
https://reviews.llvm.org/D129233
More information about the libcxx-commits
mailing list