From Cppreference

Jump to: navigation, search
float max_load_factor() const;
(1) (C++11 feature)
void max_load_factor( float ml );
(2) (C++11 feature)

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.


[edit] Parameters

ml - new maximum load factor setting

[edit] Return value

1) current maximum load factor.

2) none.

[edit] Complexity


[edit] See also

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