bucket

bucket#

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

◆ bucket()

template<typename Key , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<Key>>
STDGPU_HOST_DEVICE index_type stdgpu::unordered_set< Key, 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()