Implements part of http://wg21.link/P0896.
Implements part of [alg.partitions].
Depends on D105793.
Paths
| Differential D105794
[libcxx][algorithms] adds ranges::is_partitioned and ranges::partition_point AbandonedPublic Authored by cjdb on Jul 12 2021, 12:14 AM.
Details
Diff Detail
Event Timelinecjdb added a child revision: D105795: [libcxx][algorithms] adds ranges::lower_bound and ranges::upper_bound.Jul 12 2021, 12:15 AM Comment Actions I didn't do a detailed analysis of the algorithm used.
Comment Actions
Thanks for the review! A few clarifying things, but this all sounds reasonable.
• Quuxplusone added inline comments.
cjdb added inline comments.
Revision Contents
Diff 359371 libcxx/include/__algorithm/is_partitioned.h
libcxx/include/__algorithm/partition_point.h
libcxx/include/algorithm
libcxx/include/module.modulemap
libcxx/test/libcxx/diagnostics/nodiscard_ranges_extensions.pass.cpp
libcxx/test/libcxx/diagnostics/nodiscard_ranges_extensions.verify.cpp
libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/ranges_is_partitioned/ranges_is_partitioned.pass.cpp
libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/ranges_is_partitioned/special_function.compile.pass.cpp
libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/ranges_partition_point/ranges_partition_point.pass.cpp
libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/ranges_partition_point/special_function.compile.pass.cpp
|
Please add _LIBCPP_TEMPLATE_VIS and validate all other structs.