load_factor

load_factor#

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

◆ load_factor()

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 float stdgpu::unordered_map< Key, T, Hash, KeyEqual, Allocator >::load_factor ( ) const

The average number of elements per bucket.

Returns
The average number of elements per bucket