bsl::unordered_set::bucket_size

Return the number of elements in the bucket at index.

Synopsis

Declared in <bslstl_unorderedset.h>

unordered_set<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.

Return Value

number of elements in the bucket

Parameters

NameDescription
indexbucket index