destroyDeviceObject

destroyDeviceObject#

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

◆ destroyDeviceObject() [1/2]

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 > >) >
static void stdgpu::unordered_map< Key, T, Hash, KeyEqual, Allocator >::destroyDeviceObject ( ExecutionPolicy &&  policy,
unordered_map< Key, T, Hash, KeyEqual, Allocator > &  device_object 
)
static

Destroys the given object of this class on the GPU (device)

Template Parameters
ExecutionPolicyThe type of the execution policy
Parameters
[in]policyThe execution policy, e.g. host or device, corresponding to the allocator
[in]device_objectThe object allocated on the GPU (device)