|
|
◆ copy()
template<typename ExecutionPolicy , typename InputIt , typename OutputIt , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
| OutputIt stdgpu::copy |
( |
ExecutionPolicy && |
policy, |
|
|
InputIt |
begin, |
|
|
InputIt |
end, |
|
|
OutputIt |
output_begin |
|
) |
| |
Copies all elements of the input range to the output range using the copy assignment operator.
- Template Parameters
-
| ExecutionPolicy | The type of the execution policy |
| InputIt | The type of the input iterators |
| OutputIt | The type of the output iterator |
- Parameters
-
| [in] | policy | The execution policy, e.g. host or device |
| [in] | begin | The input iterator pointing to the first element |
| [in] | end | The input iterator pointing past to the last element |
| [in] | output_begin | The output iterator pointing to the first element |
- Returns
- The output iterator pointing to the last element
|