stdgpu: stdgpu::vector::insert
stdgpu Latest
Efficient STL-like Data Structures on the GPU
|
|
◆ insert() [2/2]
template<typename T , typename Allocator = safe_device_allocator<T>>
template<typename ExecutionPolicy , typename ValueIterator , STDGPU_DETAIL_OVERLOAD_IF( is_execution_policy_v< remove_cvref_t< ExecutionPolicy > > &&detail::is_iterator_v< ValueIterator >) >
void stdgpu::vector< T, Allocator >::insert |
( |
ExecutionPolicy && |
policy, |
|
|
device_ptr< const T > |
position, |
|
|
ValueIterator |
begin, |
|
|
ValueIterator |
end |
|
) |
| |
Inserts the given range of elements into the container.
- Template Parameters
-
ExecutionPolicy | The type of the execution policy |
- Parameters
-
[in] | policy | The execution policy, e.g. host or device, corresponding to the allocator |
[in] | position | The position after which to insert the range |
[in] | begin | The begin of the range |
[in] | end | The end of the range |
- Note
- position must be equal to device_end()
|