![]() |
hpx::parallel::v1::copy
// In header: <hpx/parallel/detail/copy.hpp> template<typename ExPolicy, typename InIter, typename OutIter> unspecified copy(ExPolicy && policy, InIter first, InIter last, OutIter dest);
Copies the elements in the range, defined by [first, last), to another range beginning at dest.
![]() |
Note |
---|---|
Complexity: Performs exactly last - first assignments. |
The assignments in the parallel copy algorithm invoked with an execution policy object of type sequential_execution_policy
execute in sequential order in the calling thread.
The assignments in the parallel copy 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 copy algorithm returns a hpx::future<OutIter> if the execution policy is of type task_execution_policy and returns OutIter otherwise. The copy algorithm returns the output iterator to the element in the destination range, one past the last element copied. |