std::is_error_condition_enum
来自 cppreference.cn
定义于头文件 <system_error> |
||
template< class T > struct is_error_condition_enum; |
(C++11 起) | |
如果 T
是一个错误条件枚举类型(例如 std::errc),则此模板提供成员常量 value
等于 true。对于任何其他类型,value
为 false。
此模板可以为程序定义类型进行特化,以指示该类型符合 std::error_condition 隐式转换的条件。
目录 |
[编辑] 辅助变量模板
template< class T > inline constexpr bool is_error_condition_enum_v = |
(C++17 起) | |
继承自 std::integral_constant
成员常量
值 [静态] |
如果 T 是一个错误条件枚举类型,则为 true,否则为 false(public static 成员常量) |
成员函数
operator bool |
将对象转换为 bool,返回 value (公开成员函数) |
operator() (C++14) |
返回 value (公开成员函数) |
成员类型
类型 | 定义 |
value_type
|
bool |
类型
|
std::integral_constant<bool, value> |
[编辑] 参阅
(C++11) |
将一个类标识为 error_code 枚举(类模板) |