Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
The `template<class K, class\... Args, class F1, class F2>` overloads only participate 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,="" class="" f1,="" f2="">`重载版本才会参与重载决议。库假定`Hash`可同时接受`K`与`Key`类型的参数调用,且`Pred`是透明的。这支持异构查找,避免了实例化`Key`类型对象的开销。</class>