bsl::unordered_map::rehash

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.

Synopsis

Declared in <bslstl_unorderedmap.h>

void
rehash(size_type numBuckets);