stdgpu: stdgpu::fill
stdgpu Latest
Efficient STL-like Data Structures on the GPU
|
|
◆ fill()
template<typename ExecutionPolicy , typename Iterator , typename T , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
void stdgpu::fill |
( |
ExecutionPolicy && |
policy, |
|
|
Iterator |
begin, |
|
|
Iterator |
end, |
|
|
const T & |
value |
|
) |
| |
Writes the given value into the given range using the copy assignment operator.
- Template Parameters
-
ExecutionPolicy | The type of the execution policy |
Iterator | The type of the iterators |
T | The type of the value |
- Parameters
-
[in] | policy | The execution policy, e.g. host or device |
[in] | begin | The iterator pointing to the first element |
[in] | end | The iterator pointing past to the last element |
[in] | value | The value that will be written |
|