uninitialized_fill

uninitialized_fill#

stdgpu: stdgpu::uninitialized_fill
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ uninitialized_fill()

template<typename ExecutionPolicy , typename Iterator , typename T , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
void stdgpu::uninitialized_fill ( ExecutionPolicy &&  policy,
Iterator  begin,
Iterator  end,
const T &  value 
)

Writes the given value to into the given range using the copy constructor.

Template Parameters
ExecutionPolicyThe type of the execution policy
IteratorThe type of the iterators
TThe type of the value
Parameters
[in]policyThe execution policy, e.g. host or device
[in]beginThe iterator pointing to the first element
[in]endThe iterator pointing past to the last element
[in]valueThe value that will be written