bsl::unordered_map::bucket_size

Return the number of elements in the bucket at index.

Synopsis

Declared in <bslstl_unorderedmap.h>

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 unordered map. The behavior is undefined unless index < bucket_count().

Return Value

number of elements in the bucket

Parameters

NameDescription
indexbucket index