device_range

device_range#

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

◆ device_range() [4/4]

template<typename Key , typename T , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<pair<const Key, T>>>
template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
device_indexed_range< const value_type > stdgpu::unordered_map< Key, T, Hash, KeyEqual, Allocator >::device_range ( ExecutionPolicy &&  policy) const

Builds a range to the values in the 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 container