Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Previously a number of conversion type traits, like <之前已经介绍了一些转换类型特征,例如 <<ref_is_tuple_like>> or <> 或 <<ref_is_sequence_like>>, were introduced. The library tries the traits one after another and uses the implementation that corresponds to the first matching trait. In some cases, though, a type would match a trait with a higher priority, but the user intends for it to belong to a lower priority category. If this happens the user can specialize the trait that's not supposed to match for that type to be an equivalent of `std::false_type`.>。库会依次尝试这些特征,并使用与第一个匹配特征对应的实现。然而,在某些情况下,某个类型可能会匹配到优先级更高的特征,而用户实际希望将其归入优先级更低的类别。如果发生这种情况,用户可以针对该类型特化那个不应匹配的特征,使其等同于`std::false_type`。</ref_is_sequence_like></ref_is_tuple_like>