std::is_error_condition_enum<std::errc>
来自cppreference.com
在标头 <system_error> 定义 | ||
template<> struct is_error_condition_enum<std::errc> : std::true_type; | (C++11 起) | |
指定 std::errc 为一个错误条件枚举。这允许到 std::error_condition 的隐式转换。
继承自 std::integral_constant
成员常量
value [静态] | true (公开静态成员常量) |
成员函数
operator bool | 将对象转换到 bool,返回 value (公开成员函数) |
operator() (C++14) | 返回 value (公开成员函数) |
成员类型
类型 | 定义 |
value_type | bool |
type | std::integral_constant<bool, value> |
参阅
(C++11) | 鉴别枚举是否可作为 std::error_condition (类模板) |