Implements part of P0896 'The One Ranges Proposal'.
Implements [range.iter.op.prev].
Depends on D102563.
Differential D102564
[libcxx][iterator] adds `std::ranges::prev` cjdb on May 15 2021, 6:41 PM. Authored by
Details
Diff Detail
Unit Tests Event TimelineComment Actions SGTM, but I would like to know what our way forward will be with [[nodiscard]] before approving.
Comment Actions I think this patch was put up for review after several days of no opposition to my proposal, but before your reply (which I need to reply to).
Comment Actions LGTM after updating the synopsis, the small comment changes and adjusting the [[nodiscard]] after discussing it on Discord. Comment Actions Applies @ldionne's feedback (from D102563, since these two patches are siblings):
|
FWIW I think it makes sense to have nodiscard here because it might be confusing to users that think next behaves like advance (advance takes a reference, this one doesn't).