std::unordered_set::bucket_size - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::unordered_set::bucket_size

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

[edit template]

size_type bucket_size( size_type n ) const; |  | (since C++11)

Returns the number of elements in the bucket with index `n`.

### [edit] Parameters

n | - | the index of the bucket to examine

### [edit] Return value

The number of elements in the bucket `n`.

### [edit] Complexity

Constant.

### [edit] See also

bucket_count | returns the number of buckets (public member function) [edit]

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