Details
- Reviewers
ldionne Mordante var-const - Group Reviewers
Restricted Project - Commits
- rG37ba1b9d1ac7: [libc++] Implement ranges::is_partitioned
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| libcxx/include/CMakeLists.txt | ||
|---|---|---|
| 70 | Please also update the Ranges status page to mark this algorithm as done. | |
| libcxx/include/__algorithm/ranges_is_partitioned.h | ||
| 2 | I think you also need to update the synopsis in <algorithm>. | |
| libcxx/test/std/algorithms/alg.sorting/alg.partitions/ranges.is_partitioned.pass.cpp | ||
| 8 | You also need to add the supported language versions/etc. | |
| 10 | Please add synopsis. | |
| 19 | Can you also check that this SFINAEs away if given something that isn't an indirect_unary_predicate? | |
| 20 | Ultranit: indent 2 spaces? Or is there a reason to use 4 spaces here? | |
| 42 | Optional: I think you could implement a helper function that takes care of both the iterator/sentinel and the ranges overloads. The main advantage would be more succinct callsites: assert(test({1, 2, 3, 4, 5}, [](int i) { return i < 3; }));
assert(test({1, 2, 3, 4}, [](int i) { return true; }));
... | |
| 43 | A few additional test cases:
| |
| 57 | Nit: s/partitoned/partitioned/. | |
- Address comments
| libcxx/test/std/algorithms/alg.sorting/alg.partitions/ranges.is_partitioned.pass.cpp | ||
|---|---|---|
| 42 | I'll try it for the next algorithm I implement. Maybe I'll change it then for all of them. | |
Please also update the Ranges status page to mark this algorithm as done.