insert

insert#

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

◆ insert() [1/2]

template<typename T , typename Allocator = safe_device_allocator<T>>
template<typename ValueIterator , STDGPU_DETAIL_OVERLOAD_IF(detail::is_iterator_v< ValueIterator >) >
void stdgpu::vector< T, Allocator >::insert ( device_ptr< const T >  position,
ValueIterator  begin,
ValueIterator  end 
)

Inserts the given range of elements into the container.

Parameters
[in]positionThe position after which to insert the range
[in]beginThe begin of the range
[in]endThe end of the range
Note
position must be equal to device_end()