Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Things to check
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
The `template<class K, class\... Args>` overload only participates in overload resolution if `仅当 Hash::is_transparent` and `与 Pred::is_transparent` are valid member typedefs. The library assumes that `Hash` is callable with both `K` and `Key` and that `Pred` is transparent. This enables heterogeneous lookup which avoids the cost of instantiating an instance of the `Key` type.为合法的成员类型别名时,template<class k,="" args=""> 这个重载版本才会参与重载决议。库实现假定 Hash 可同时接受 K 类型与 Key 类型作为参数,且 Pred 是透明的。
这一特性支持异构查找,从而避免实例化 Key 类型对象带来的性能开销。</class>