Implements part of P0896 'The One Ranges Proposal'.
Implements [range.iter.op.next].
Depends on D101922.
Paths
| Differential D102563
[libcxx][iterator] adds `std::ranges::next` ClosedPublic Authored by cjdb on May 15 2021, 6:03 PM.
Details
Diff Detail
Event Timelinecjdb added a child revision: D102564: [libcxx][iterator] adds `std::ranges::prev`.May 15 2021, 6:41 PM Comment Actions You need to mark it [[nodiscard]] as an extension in the synopsis in <iterator>.
This revision now requires changes to proceed.May 25 2021, 12:54 PM cjdb marked 3 inline comments as done. Comment ActionsApplies @ldionne's feedback:
This revision is now accepted and ready to land.May 26 2021, 4:05 PM Closed by commit rG857fa7b7b187: [libcxx][iterator] adds `std::ranges::next` (authored by cjdb). · Explain WhyMay 26 2021, 9:42 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 348153 libcxx/include/CMakeLists.txt
libcxx/include/__iterator/next.h
libcxx/include/iterator
libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/check_round_trip.h
libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/constraints.verify.cpp
libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator.pass.cpp
libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator_count.pass.cpp
libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator_count_sentinel.pass.cpp
libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator_sentinel.pass.cpp
libcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/special_function.compile.pass.cpp
|