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()`,仅在容器尺寸极小时,实现可能允许负载因子略高于该值。