| float max_load_factor() const; |
(1) | (since C++11) |
| void max_load_factor( float ml ); |
(2) | (since C++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.
ml.Parameters
| ml | - | new maximum load factor setting |
Return value
Complexity
Constant.
See also
| returns average number of elements per bucket (public member function) |
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.