size

size#

stdgpu: stdgpu::unordered_set::size
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ size() [2/2]

template<typename Key , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<Key>>
template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
index_t stdgpu::unordered_set< Key, Hash, KeyEqual, Allocator >::size ( ExecutionPolicy &&  policy) const

The size.

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