BloombergLP::bslstl::HashTable::countElementsInBucket

Return the number of elements in the bucket at index.

Synopsis

Declared in <bslstl_hashtable.h>

HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>::SizeType
countElementsInBucket(SizeType index) const;

Description

Return the number elements contained in the bucket at the specified index. Note that this operation has linear run-time complexity with respect to the number of elements in the indexed bucket.

Return Value

number of elements in the bucket at index

Parameters

NameDescription
indexbucket index