bsl::unordered_multiset::bucket_size

Return the number of elements in the bucket at index.

Synopsis

Declared in <bslstl_unorderedmultiset.h>

unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR>::size_type
bucket_size(size_type index) const;

Description

Return the number of elements contained in the bucket at the specified index in the array of buckets maintained by this container. The behavior is undefined unless 'index < bucket_count()'.

Return Value

number of elements in the bucket

Parameters

NameDescription
indexbucket index