[#bsl-unordered_set-09-bucket-09] = xref:bsl.adoc[bsl]::xref:bsl/unordered_set-09.adoc[unordered_set<Attribute, AttributeHash>]::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-09/size_type.adoc[size_type] bucket(xref:bsl/unordered_set-09/key_type.adoc[key_type] const& key) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#