Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
The size of the bucket array can be automatically increased by a call to `insert`/`emplace`, or as a result of calling `rehash`/`reserve`. The _load factor_ of the table (number of elements divided by number of buckets) is never greater than `max_load_factor()`, except possibly for small sizes where the implementation may decide to allow for higher loads.调用 `insert`/`emplace` 或执行 `rehash`/`reserve` 操作时,桶数组的大小会自动扩容。容器的负载因子(元素数量除以桶数量)永远不会超过 `max_load_factor()`,仅在尺寸较小时,实现可能允许更高的负载因子。