Template:cpp/container/rehash

Sets the number of buckets to and rehashes the container, i.e. puts the elements into appropriate buckets considering that total number of buckets has changed. If the new number of buckets makes load factor more than maximum load factor, then the new number of buckets is at least.

Return value
(none)

Complexity
Average case linear in the size of the container, worst case quadratic.