![]() |
hpx::parallel::v1::move
// In header: <hpx/parallel/detail/move.hpp> template<typename ExPolicy, typename InIter, typename OutIter> unspecified move(ExPolicy && policy, InIter first, InIter last, OutIter dest);
Moves the elements in the range [first, last), to another range beginning at dest. After this operation the elements in the moved-from range will still contain valid values of the appropriate type, but not necessarily the same values as before the move.
![]() |
Note |
---|---|
Complexity: Performs exactly last - first move assignments. |
The move assignments in the parallel move algorithm invoked with an execution policy object of type sequential_execution_policy
execute in sequential order in the calling thread.
The move assignments in the parallel move algorithm invoked with an execution policy object of type parallel_execution_policy
or task_execution_policy
are permitted to execute in an unordered fashion in unspecified threads, and indeterminately sequenced within each thread.
Parameters: |
|
||||||||
Template Parameters: |
|
||||||||
Returns: |
The move algorithm returns a hpx::future<OutIter> if the execution policy is of type task_execution_policy and returns OutIter otherwise. The move algorithm returns the output iterator to the element in the destination range, one past the last element copied. |