concurrent_unordered_set::rehash Method

Rebuilds the hash table.

void rehash(
   size_type _Buckets
);

_Buckets

The desired number of buckets.

The member function alters the number of buckets to be at least _Buckets and rebuilds the hash table as needed. The number of buckets must be a power of 2. If not a power of 2, it will be rounded up to the next largest power of 2.

It throws an out_of_range exception if the number of buckets is invalid (either 0 or greater than the maximum number of buckets).

Header: internal_concurrent_hash.h

Namespace: concurrency

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft