std::unordered_set::load_factor - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::unordered_set::load_factor

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

[edit template]

float load_factor() const; |  | (since C++11)

Returns the average number of elements per bucket.

### [edit] Parameters

(none)

### [edit] Return value

Average number of elements per bucket.

### [edit] Complexity

Constant.

### [edit] See also

max_load_factor | manages maximum average number of elements per bucket (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/unordered_set/load_factor&oldid=50788"