Created on 2022-08-25.00:00:00 last changed 12 months ago
Proposed resolution:
This wording is relative to N4910.
Modify [alg.rotate] as indicated:
template<forward_range R, weakly_incrementable O> requires indirectly_copyable<iterator_t<R>, O> constexpr ranges::rotate_copy_result<borrowed_iterator_t<R>, O> ranges::rotate_copy(R&& r, iterator_t<R> middle, O result);-11- Effects: Equivalent to:
return ranges::rotate_copy(ranges::begin(r), middle, ranges::end(r), std::move(result));
[ 2022-11-12 Approved at November 2022 meeting in Kona. Status changed: Voting → WP. ]
[ 2022-09-23; Reflector poll ]
Set status to Tentatively Ready after seven votes in favour during reflector poll.
The range version of ranges::rotate_copy directly passes the result to the iterator-pair version. Since the type of result only models weakly_incrementable and may not be copied, we should use std::move here.
History | |||
---|---|---|---|
Date | User | Action | Args |
2023-11-22 15:47:43 | admin | set | status: wp -> c++23 |
2022-11-17 00:42:33 | admin | set | messages: + msg13066 |
2022-11-17 00:42:33 | admin | set | status: voting -> wp |
2022-11-08 03:46:49 | admin | set | status: ready -> voting |
2022-09-23 15:43:32 | admin | set | messages: + msg12786 |
2022-09-23 15:43:32 | admin | set | status: new -> ready |
2022-09-03 13:01:09 | admin | set | messages: + msg12726 |
2022-08-25 00:00:00 | admin | create |