Difference between revisions of "cpp/container/unordered map/max load factor"
From cppreference.com
< cpp | container | unordered map
m (Add link to edit the included template) |
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
||
Line 1: | Line 1: | ||
{{page template|cpp/container/max_load_factor|unordered_map}} | {{page template|cpp/container/max_load_factor|unordered_map}} | ||
+ | |||
+ | [[de:cpp/container/unordered map/max load factor]] | ||
+ | [[es:cpp/container/unordered map/max load factor]] | ||
+ | [[fr:cpp/container/unordered map/max load factor]] | ||
+ | [[it:cpp/container/unordered map/max load factor]] | ||
+ | [[ja:cpp/container/unordered map/max load factor]] | ||
+ | [[pt:cpp/container/unordered map/max load factor]] | ||
+ | [[ru:cpp/container/unordered map/max load factor]] | ||
+ | [[zh:cpp/container/unordered map/max load factor]] |
Revision as of 09:33, 2 November 2012
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.
1) Returns current maximum load factor.
2) Sets the maximum load factor to ml.
Contents |
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) |