Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
These template metafunctions check whether a given type meets the requirements for the various stream concepts, and some additional useful utilities. The library uses these type checks internally and also provides them as public interfaces so users may use the same techniques to augment their own code. The use of these type checks helps provide more concise errors during compilation:这些模板元函数用于检查某个类型是否满足各类流概念的要求,并提供一些额外的实用工具。该库内部使用这些类型检查,同时也将其作为公共接口开放,方便用户用同样的方式增强自己的代码。采用这些类型检查机制,有助于在编译时给出更清晰的错误提示。