|
|
◆ copy_n()
template<typename ExecutionPolicy , typename InputIt , typename Size , typename OutputIt , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
| OutputIt stdgpu::copy_n |
( |
ExecutionPolicy && |
policy, |
|
|
InputIt |
begin, |
|
|
Size |
n, |
|
|
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 |
| Size | The size type |
| 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] | n | The number of elements in the value range |
| [in] | output_begin | The output iterator pointing to the first element |
- Returns
- The output iterator pointing to the last element
|