Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Requires:;;要求:`FwdIterator`is a需满足 https://en.cppreference.com/w/cpp/named_req/ForwardIterator[LegacyForwardIterator^] (遗留向前迭代器^] 要求({cpp}11to至 {cpp}17), or satisfies),或满足 https://en.cppreference.com/w/cpp/iterator/forward_iterator[`std::forward_iterator`^](要求({cpp}20and later). For及更高版本)。对于 `K`=`std::iterator_traits<FwdIfwditerator>::value_type`, either,要么 `K`is是 `key_type`or else,要么 `Hash::is_transparent`and和 `Pred::is_transparent`are valid member typedefs. In the latter case, 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. Returns:;; The number of elements visited.调用,且 `Pred` 是透明的。该机制支持异构查找,从而避免实例化 `Key` 类型的开销。返回:被访问的元素数量。</fwditerator>