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()`。在高负载条件下执行删除操作后,该数值可能会降低。
在存在并发插入操作时,返回的值可能无法准确反映执行后哈希表的真实状态。