BloombergLP::bslstl::HashTable::bucketIndexForKey

bucketIndexForKey overloads

Synopses

Declared in <bslstl_hashtable.h>

Return the bucket index for the specified key.

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

Return the bucket index for the specified transparent key.

template<class LOOKUP_KEY>
SizeType
bucketIndexForKey(LOOKUP_KEY const& key) const
requires BloombergLP::bslmf::IsTransparentPredicate<HASHER,    LOOKUP_KEY>::value
   && BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR,LOOKUP_KEY>::value;
» more...

Return Value

  • index of the bucket that would contain elements with key
  • index of the bucket that would contain elements equivalent to key

Parameters

NameDescription
keykey whose bucket index is returned