Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/unordered multiset/max load factor"

From cppreference.com
m (Add link to edit the included template)
m (langlinks)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
{{page template|cpp/container/max_load_factor|unordered_multiset}}
+
{{include page|cpp/container/max_load_factor|unordered_multiset}}
 +
 
 +
{{langlinks|de|es|fr|it|ja|pt|ru|zh}}

Latest revision as of 07:41, 4 December 2021

 
 
 
 
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

[edit] Parameters

ml - new maximum load factor setting

[edit] Return value

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

[edit] Complexity

Constant.

[edit] See also

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