bucket

bucket#

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

◆ bucket()

template<typename Key , typename T , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<pair<const Key, T>>>
STDGPU_HOST_DEVICE index_type stdgpu::unordered_map< Key, T, Hash, KeyEqual, Allocator >::bucket ( const key_type key) const

Returns the bucket to which the given key is mapped.

Parameters
[in]keyThe key
Returns
The bucket of the key
Postcondition
result < bucket_count()