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()`,仅在尺寸极小时,实现可能允许更高的负载。