BloombergLP::bslstl::HashTable::bucketIndexForKey

Return the bucket index for the specified key.

Synopsis

Declared in <bslstl_hashtable.h>

HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>::SizeType
bucketIndexForKey(KeyType const& key) const;

Description

Return the index of the bucket that would contain all the elements having the specified key.

Return Value

index of the bucket that would contain elements with key

Parameters

NameDescription
keykey whose bucket index is returned