std::unordered_multimap::max_load_factor - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::unordered_multimap::max_load_factor

From cppreference.com
< cpp‎ | container‎ | unordered multimap

[edit template]

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`.

### [edit] Parameters

ml | - | new maximum load factor setting

### [edit] Return value

1) current maximum load factor.

2) none.

### [edit] Complexity

Constant

### [edit] See also

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

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/unordered_multimap/max_load_factor&oldid=50730"