Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Returns:;; A `node_type` owning the element if found, otherwise an empty `node_type`. Throws:;; Only throws an exception if it is thrown by返回:若找到元素,则返回拥有该元素的 `node_type`;否则返回空 `node_type`。抛出:仅当 `hasher`or或 `key_equal`. Notes:;; In C++17 a node extracted using this method can be inserted into a compatible `unordered_multiset`, but that is not supported yet. + + The `template<class K>` overload only participates in overload resolution if抛出异常时才会抛出异常。说明:在 C++17 中,通过此方法提取的节点可以插入到兼容的 `unordered_multiset` 中,但该功能尚未支持。+ +`template<class k="">` 重载仅在以下条件下参与重载决议:`Hash::is_transparent`and和 `Pred::is_transparent`are valid member typedefs and neither是有效的成员 typedef,且 `iterator`nor和 `const_iterator`are implicitly convertible from `K`. The library assumes that `Hash` is callable with both均不能从 `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.调用,且 `Pred` 是透明的。这实现了异构查找,从而避免了实例化 `Key` 类型对象的开销。</class>