Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Things to check
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Returns:;; The number of elements with key equivalent to `k` (0 or 1). Notes:;; The `template<class K>` overload only participates in overload resolution if返回值:;; 与键 `k` 等价的元素数量(值为 0 或 1)。注意:;; 仅当 `Hash::is_transparent`
and和 `Pred::is_transparent`are valid member typedefs. The library assumes that `Hash` is callable with both是有效的成员类型别名时,`template<class k="">` 重载版本才参与重载决议。库假定 `Hash` 可同时接受 `K`and类型与 `Key`and that `Pred` is transparent. This enables heterogeneous lookup which avoids the cost of instantiating an instance of the `Key` type. + + In the presence of concurrent insertion operations, the value returned may not accurately reflect the true state of the table right after execution.类型作为参数,且 `Pred` 是透明的。这支持异构查找,从而避免实例化 `Key` 类型对象带来的性能开销。在存在并发插入操作的情况下,返回的值可能无法精确反映执行后容器的真实状态。</class>