class
<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
This is a traits class to identify whether a particular type is an error condition enum type, and thus can be used to construct or assign values to objects of type error_condition.
This header provides a default definition, which simply inherits from false_type, and a specialization for errc, which inherits from true_type. Custom error condition enum types should specialize it as inheriting from true_type in order to be used to construct error_condition objects. The standard error condition types io_errc and future_errc inherit true_type.
Template parameters
- T
- A type.
If this is errc, the class inherits from true_type.