device_range

device_range#

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

◆ device_range() [3/4]

template<typename T , typename Allocator = safe_device_allocator<T>>
template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
stdgpu::device_range< T > stdgpu::vector< T, Allocator >::device_range ( ExecutionPolicy &&  policy)

Creates a range of the device container.

Template Parameters
ExecutionPolicyThe type of the execution policy
Parameters
[in]policyThe execution policy, e.g. host or device, corresponding to the allocator
Returns
A range of the object