Пространства имён
Варианты
Действия

std::unordered_set::rehash

Материал из cppreference.com

<metanoindex/>

 
 
 
 
<tbody> </tbody>
void rehash( size_type count );
(начиная с C++11)

Sets the number of buckets to count 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 (count < size() / max_load_factor()), then the new number of buckets is at least size() / max_load_factor().

Параметры

count new number of buckets

Возвращаемое значение

(Нет)

Сложность

средняя случае линейного по размеру контейнера, в худшем случае квадратичной.
Оригинал:
average case linear in the size of the container, worst case quadratic.
Текст был переведён автоматически используя Переводчик Google.
Вы можете проверить и исправить перевод. Для инструкций щёлкните сюда.

См. также

(C++11)
резервирует место по крайней мере для указанного количества элементов и регенерирует хеш-таблицу
(public функция-элемент) [править]