std::unordered_set<Key,Hash,KeyEqual,Allocator>::load_factor (3) - Linux Manuals

std::unordered_set<Key,Hash,KeyEqual,Allocator>::load_factor: std::unordered_set<Key,Hash,KeyEqual,Allocator>::load_factor

NAME

std::unordered_set<Key,Hash,KeyEqual,Allocator>::load_factor - std::unordered_set<Key,Hash,KeyEqual,Allocator>::load_factor

Synopsis


float load_factor() const; (since C++11)


Returns the average number of elements per bucket, that is, size() divided by bucket_count().

Parameters


(none)

Return value


Average number of elements per bucket.

Complexity


Constant.

See also


                manages maximum average number of elements per bucket
max_load_factor (public member function)