Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | container‎ | unordered set
Revision as of 07:46, 3 December 2021 by Ljestrada (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
float load_factor() const;
(since C++11)

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

Contents

[edit] Parameters

(none)

[edit] Return value

Average number of elements per bucket.

[edit] Complexity

Constant.

[edit] See also

manages maximum average number of elements per bucket
(public member function) [edit]