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>` 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>