function object
std::ranges::move
- Header
<algorithm>- Draft
- [algorithm.syn]
- Scope
std::ranges- cppreference
- std::ranges::move
Synopsis
inline constexpr /* implementation-defined */ move = {};Call signatures
move is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<std::ranges::input_range R, std::weakly_incrementable O> requires std::indirectly_movable<iterator_t<R>, O> constexpr std::ranges::move_result<borrowed_iterator_t<R>, O> move( R&& r, O result); - (2)
template< std::input_iterator I, std::sentinel_for<I> S, std::weakly_incrementable O> requires std::indirectly_movable<I, O> constexpr std::ranges::move_result<I, O> move(I first, S last, O result); - (3)
template< class ExecutionPolicy, std::random_access_iterator I, std::sized_sentinel_for<I> S, std::random_access_iterator O, std::sized_sentinel_for<O> OutS> requires execution-policy<ExecutionPolicy> && std::indirectly_movable<I, O> std::ranges::in_out_result<I, O> move( ExecutionPolicy&&, I first, S last, O result, OutS result_last) noexcept; - (4)
template< class ExecutionPolicy, sized_random_access_range R, sized_random_access_range OutR> requires execution-policy<ExecutionPolicy> && std::indirectly_movable<std::ranges::iterator_t<R>, std::ranges::iterator_t<OutR>> std::ranges::in_out_result<std::ranges::borrowed_iterator_t<R>, std::ranges::borrowed_iterator_t<OutR>> move( ExecutionPolicy&& exec, R&& r, OutR&& result_r) noexcept;