[#bsl-unordered_set-0d2d-bucket-00] = xref:bsl.adoc[bsl]::xref:bsl/unordered_set-0d2d.adoc[unordered_set]::bucket :relfileprefix: ../../ :mrdocs: Return the index of the bucket, in the array of buckets of this container, where a value equivalent to the specified `key` would be inserted. == Synopsis Declared in `<bslstl_unorderedset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/unordered_set-0d2d/size_type.adoc[unordered_set<KEY, HASH, EQUAL, ALLOCATOR>::size_type] bucket(xref:bsl/unordered_set-0d2d/key_type.adoc[key_type] const& key) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#