![]()  | 
hpx::parallel::v1::fill
// In header: <hpx/parallel/detail/fill.hpp> template<typename ExPolicy, typename InIter, typename T> unspecified fill(ExPolicy && policy, InIter first, InIter last, T value);
Assigns the given value to the elements in the range [first, last).
![]()  | 
Note | 
|---|---|
Complexity: Performs exactly last - first assignments.  | 
The comparisons in the parallel fill algorithm invoked with an execution policy object of type sequential_execution_policy execute in sequential order in the calling thread.
The comparisons in the parallel fill 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 fill algorithm returns a hpx::future<void> if the execution policy is of type task_execution_policy and returns difference_type otherwise (where difference_type is defined by void.  |