[#bsl-unordered_set-09-bucket-00dd5] = 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. == Synopses Declared in `<bslstl_unorderedset.h>` 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/unordered_set-09/size_type.adoc[size_type] xref:bsl/unordered_set-09/bucket-09.adoc[bucket](xref:bsl/unordered_set-09/key_type.adoc[key_type] const& key) const; ---- [.small]#xref:bsl/unordered_set-09/bucket-09.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> xref:bsl/unordered_set-09/size_type.adoc[size_type] xref:bsl/unordered_set-09/bucket-00ddf.adoc[bucket](LOOKUP_KEY const& key) const requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value; ---- [.small]#xref:bsl/unordered_set-09/bucket-00ddf.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#