hpx::ranges::uninitialized_move_n#
Defined in header hpx/algorithm.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
See also:
-
template<typename InIter, typename Size, typename FwdIter, typename Sent2>
hpx::parallel::util::in_out_result<InIter, FwdIter> hpx::ranges::uninitialized_move_n(InIter first1, Size count, FwdIter first2, Sent2 last2)# Moves the elements in the range [first, first + count), starting from first and proceeding to first + count - 1., to another range beginning at dest. If an exception is thrown during the initialization, some objects in [first, first + count) are left in a valid but unspecified state.
The assignments in the parallel uninitialized_move_n algorithm invoked with an execution policy object of type sequenced_policy execute in sequential order in the calling thread.
Note
Complexity: Performs exactly count movements, if count > 0, no move operations otherwise.
- Template Parameters:
InIter – The type of the source iterators used (deduced). This iterator type must meet the requirements of an input iterator.
Size – The type of the argument specifying the number of elements to apply f to.
FwdIter – The type of the iterator representing the destination range (deduced). This iterator type must meet the requirements of a forward iterator.
Sent2 – The type of the source sentinel (deduced). This sentinel type must be a sentinel for FwdIter.
- Parameters:
first1 – Refers to the beginning of the sequence of elements that will be moved from
count – Refers to the number of elements starting at first the algorithm will be applied to.
first2 – Refers to the beginning of the destination range.
last2 – Refers to sentinel value denoting the end of the second range the algorithm will be applied to.
- Returns:
The uninitialized_move_n algorithm returns in_out_result<InIter, FwdIter>. The uninitialized_move_n algorithm returns the output iterator to the element in the destination range, one past the last element moved.
-
template<typename ExPolicy, typename FwdIter1, typename Size, typename FwdIter2, typename Sent2>
parallel::util::detail::algorithm_result<ExPolicy, parallel::util::in_out_result<FwdIter1, FwdIter2>>::type hpx::ranges::uninitialized_move_n(ExPolicy &&policy, FwdIter1 first1, Size count, FwdIter2 first2, Sent2 last2)# Moves the elements in the range [first, first + count), starting from first and proceeding to first + count - 1., to another range beginning at dest. If an exception is thrown during the initialization, some objects in [first, first + count) are left in a valid but unspecified state.
The assignments in the parallel uninitialized_move_n algorithm invoked with an execution policy object of type sequenced_policy execute in sequential order in the calling thread.
The assignments in the parallel uninitialized_move_n algorithm invoked with an execution policy object of type parallel_policy or parallel_task_policy are permitted to execute in an unordered fashion in unspecified threads, and indeterminately sequenced within each thread.
Note
Complexity: Performs exactly count movements, if count > 0, no move operations otherwise.
- Template Parameters:
ExPolicy – The type of the execution policy to use (deduced). It describes the manner in which the execution of the algorithm may be parallelized and the manner in which it executes the assignments.
FwdIter1 – The type of the source iterators used (deduced). This iterator type must meet the requirements of an input iterator.
Size – The type of the argument specifying the number of elements to apply f to.
FwdIter2 – The type of the iterator representing the destination range (deduced). This iterator type must meet the requirements of a forward iterator.
Sent2 – The type of the source sentinel (deduced). This sentinel type must be a sentinel for InIter2.
- Parameters:
policy – The execution policy to use for the scheduling of the iterations.
first1 – Refers to the beginning of the sequence of elements that will be moved from
count – Refers to the number of elements starting at first the algorithm will be applied to.
first2 – Refers to the beginning of the destination range.
last2 – Refers to sentinel value denoting the end of the second range the algorithm will be applied to.
- Returns:
The uninitialized_move_n algorithm returns a hpx::future<in_out_result<FwdIter1, FwdIter2>> if the execution policy is of type sequenced_task_policy or parallel_task_policy and returns FwdIter2 otherwise. The uninitialized_move_n algorithm returns the output iterator to the element in the destination range, one past the last element moved.