Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Requires:前置要求:;; `value_type`is https://en.cppreference.com/w/cpp/named_req/EmplaceConstructible[EmplaceConstructible^] from `k`. Returns:;; `true` if an insert took place. Concurrency:;; Blocking on rehashing of `*this`. Notes:;; Invalidates pointers and references to elements if a rehashing is issued. + + This overload only participates in overload resolution if可通过 `k` 原位构造。返回值:;; 成功插入元素时返回 `true`。
并发特性:;; 若触发重哈希,则会阻塞当前对象 `*this`。
注意:;; 若执行重哈希,将使指向元素的指针和引用失效。
仅当 `Hash::is_transparent`
and和 `Pred::is_transparent`are valid member typedefs. The library assumes that `Hash` is callable with both是有效的成员别名时,该重载版本才参与重载决议。库假定 `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.类型调用,且 `Pred` 是透明的。这支持异构查找,避免实例化 `Key` 类型对象的开销。