[#bsl-unordered_set-09-rehash] = xref:bsl.adoc[bsl]::xref:bsl/unordered_set-09.adoc[unordered_set<Attribute, AttributeHash>]::rehash :relfileprefix: ../../ :mrdocs: Change the size of the array of buckets maintained by this container to the specified `numBuckets`, and redistribute all the contained elements into the new sequence of buckets, according to their hash values. Note that this operation has no effect if rehashing the elements into `numBuckets` would cause this set to exceed its `max_load_factor`. == Synopsis Declared in `<bslstl_unorderedset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void rehash(xref:bsl/unordered_set-09/size_type.adoc[size_type] numBuckets); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#