[#bsl-unordered_map-02b-rehash] = xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered_map]::rehash :relfileprefix: ../../ :mrdocs: Rehash this unordered map to at least `numBuckets` buckets. == Synopsis Declared in `<bslstl_unorderedmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void rehash(xref:bsl/unordered_map-02b/size_type.adoc[size_type] numBuckets); ---- == Description Change the size of the array of buckets maintained by this unordered map to at least the specified `numBuckets`, and redistribute all the contained elements into the new sequence of buckets, according to their hash values. After this call, `load_factor` will be less than or equal to `max_load_factor`. This operation has no effect if rehashing the elements into `numBuckets` would cause this map to exceed its `max_load_factor`. == Parameters [cols="1,4"] |=== | Name| Description | *numBuckets* | requested minimum number of buckets |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#