Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Returns:;; An iterator pointing to an element with key equivalent to `k`, or `b.end()` if no such element exists. Notes:;; The templated overloads containing返回:指向键与 `k` 等价的元素的迭代器,若不存在这样的元素则返回 `b.end()`。说明:包含 `CompatibleKey`,、`CompatibleHash`and和 `CompatiblePredicate`are non-standard extensions which allow you to use a compatible hash function and equality predicate for a key of a different type in order to avoid an expensive type cast. In general, its use is not encouraged and instead the `K` member function templates should be used. + + The `template<class K>` overloads only participate in overload resolution if的模板化重载是非标准扩展,允许您使用兼容的哈希函数和相等谓词来处理不同类型的键,以避免昂贵的类型转换。通常不鼓励使用它们,而应使用 `K` 成员函数模板。+ +`template<class k="">` 重载仅在 `Hash::is_transparent`and和 `Pred::is_transparent`are valid member typedefs. The library assumes that `Hash` is callable with both是有效的成员 typedef 时参与重载决议。库假定 `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>