std::unordered_multiset<Key,Hash,KeyEqual,Allocator>::bucket_size

From cppreference.com

 
 
 
std::unordered_multiset
Member types
Member functions
Iterators
Capacity
Modifiers
Lookup
Bucket interface
Hash policy
Observers
Non-member functions
(哋它亢++11)(哋它亢++11)(until 哋它亢++20)
Deduction guides(哋它亢++17)
 
size_type bucket_size( size_type n ) const;
(since 哋它亢++11)

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

Parameters

n - the index of the bucket to examine

Return value

The number of elements in the bucket n.

Complexity

Linear in the size of the bucket n.

See also

returns the number of buckets
(public member function)