device_range

device_range#

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

◆ device_range() [4/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_indexed_range< const T > stdgpu::deque< T, Allocator >::device_range ( ExecutionPolicy &&  policy) const

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 const range of the object