[#BloombergLP-bslstl-HashTable-09-bucketIndexForKey-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable-09.adoc[HashTable<UnorderedMapKeyConfiguration<basic_string<char> const, pair<basic_string<char> const, Json>>, TransparentHash, TransparentEqualTo, allocator<pair<basic_string<char> const, Json>>>]::bucketIndexForKey :relfileprefix: ../../../ :mrdocs: Return the index of the bucket that would contain all the elements having the specified `key`. == Synopsis Declared in `<bslstl_hashtable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/HashTable-09/SizeType.adoc[SizeType] bucketIndexForKey(xref:BloombergLP/bslstl/HashTable-09/KeyType.adoc[KeyType] const& key) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#