bucket_size

bucket_size#

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

◆ bucket_size()

template<typename Key , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<Key>>
STDGPU_DEVICE_ONLY index_type stdgpu::unordered_set< Key, Hash, KeyEqual, Allocator >::bucket_size ( index_type  n) const

Returns the number of elements in the requested container bucket.

Parameters
[in]nThe bucket index
Returns
The number of elements in the requested bucket