<system_error>

std::is_error_condition_enum

template <class T>struct is_error_condition_enum : public false_type {};template<>struct is_error_condition_enum<errc> : true_type {};
error_condition enum flag


這是一個特性類,用於識別一個特定的型別是否為error condition enum型別,因此可以用於構造或賦值給error_condition型別的物件。

此標頭檔案提供了一個預設定義,它簡單地繼承自false_type,以及一個針對errc的特化,它繼承自true_type。自定義的error condition enum型別應將其特化為繼承自true_type,以便用於構造error_condition物件。標準的error condition型別io_errcfuture_errc繼承自true_type

模板引數

T
一個型別。
如果是errc,則該類繼承自true_type

成員型別

繼承自integral_constantis_falseis_trueintegral_constant例項化的typedef)
成員型別定義
value_typebool
型別要麼是true_type,要麼是false_type

成員常量

繼承自integral_constantis_falseis_trueintegral_constant例項化的typedef)
成員常量定義
要麼是true,要麼是false

成員函式

繼承自integral_constantis_falseis_trueintegral_constant例項化的typedef)