[#BloombergLP-bslstl-HashTable-06-bucketIndexForKey-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable]::bucketIndexForKey :relfileprefix: ../../../ :mrdocs: Return the index of the bucket that would contain all the elements equivalent to the specified `key`. == Synopsis Declared in `<bslstl_hashtable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> xref:BloombergLP/bslstl/HashTable-06/SizeType.adoc[SizeType] bucketIndexForKey(LOOKUP_KEY const& key) const requires BloombergLP::bslmf::IsTransparentPredicate<HASHER, LOOKUP_KEY>::value && BloombergLP::bslmf::IsTransparentPredicate<COMPARATOR,LOOKUP_KEY>::value; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#