Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Returns:;; The maximum number of elements the table can hold without rehashing, assuming that no further elements will be erased. Note:;; After construction, rehash or clearance, the table's maximum load is at least `max_load_factor() * bucket_count()`. This number may decrease on erasure under high-load conditions. + + In the presence of concurrent insertion operations, the value returned may not accurately reflect the true state of the table right after execution.返回值:容器在不进行重哈希的前提下可容纳的最大元素数量(假定不会再擦除任何元素)。说明:容器在构造、重哈希或清空后,其最大负载量至少为 `max_load_factor() * bucket_count()`。在高负载条件下执行擦除操作时,该数值可能会降低。
若存在并发插入操作,返回值可能无法精确反映容器执行后的真实状态。