std::unordered_multimap<Key,T,Hash,KeyEqual,Allocator>::max_load_factor

From cppreference.com

 
 
 
std::unordered_multimap
Member types
Member functions
Iterators
Capacity
Modifiers
Lookup
Bucket interface
Hash policy
unordered_multimap::max_load_factor
Observers
Non-member functions
(哋它亢++11)(哋它亢++11)(until 哋它亢++20)
Deduction guides (哋它亢++17)
 
float max_load_factor() const;
(1) (since 哋它亢++11)
void max_load_factor( float ml );
(2) (since 哋它亢++11)

Manages the maximum load factor (number of elements per bucket). The container automatically increases the number of buckets if the load factor exceeds this threshold.

1) Returns current maximum load factor.
2) Sets the maximum load factor to ml.

Parameters

ml - new maximum load factor setting

Return value

1) Current maximum load factor.
2) (none)

Complexity

Constant.

See also

returns average number of elements per bucket
(public member function)