bucket_size

bucket_size#

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

◆ bucket_size()

template<typename Key , typename T , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<pair<const Key, T>>>
STDGPU_DEVICE_ONLY index_type stdgpu::unordered_map< Key, T, 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