erase

erase#

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

◆ erase() [2/2]

template<typename T , typename Allocator = safe_device_allocator<T>>
template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
void stdgpu::vector< T, Allocator >::erase ( ExecutionPolicy &&  policy,
device_ptr< const T >  begin,
device_ptr< const T >  end 
)

Deletes the given range from the container.

Template Parameters
ExecutionPolicyThe type of the execution policy
Parameters
[in]policyThe execution policy, e.g. host or device, corresponding to the allocator
[in]beginThe begin of the range
[in]endThe end of the range
Note
end must be equal to device_end()