std::unordered_set max_load_factor() method
- od C++11
// (1) Const version
float max_load_factor() const;
// (2) Non-const version
void max_load_factor( float ml );
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) unordered_sets the maximum load factor to
ml
.
Parameters
ml
- new maximum load factor unordered_setting
Return value
- (1) current maximum load factor.
- (2) (none)
Complexity
Constant - O(1).
Exceptions
(none)