std::is_error_condition_enum
來自 cppreference.com
定義於標頭檔案 <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 列舉(類模板) |