Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Key
:1160Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Requires:要求:;; `value_type`is可由 `k` 进行 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. + + These overloads only participate in overload resolution if构造。返回值:;; 执行插入操作则返回 `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` 类型对象的开销。