Rehash this set to have at least numBuckets buckets.
Synopsis
Declared in <bslstl_unorderedset.h>
void
rehash(size_type numBuckets);
Description
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.
Parameters
Name |
Description |
numBuckets |
desired number of buckets |
Created with MrDocs