Reference

class
<system_error>

std::is_error_code_enum

template <class T>struct is_error_code_enum : public false_type {};
error_code enum flag

This is a traits class to identify whether a particular type is an error code enum type, and thus can be used to construct or assign values to objects of type error_code .

The standard header only provides the default definition, which simply inherits from false_type . But it should be specialized as inheriting from true_type to enable the construction of error_code object from error code enum types. The standard error condition types io_errc and future_errc inherit true_type .

Template parameters

T
A type.

Member types

Inherited from integral_constant (is_false and is_true are typedefs of integral_constant instantiations):
member typedefinition
value_typebool
typeeither true_type or false_type

Member constants

Inherited from integral_constant (is_false and is_true are typedefs of integral_constant instantiations):
member constantdefinition
valueeither true or false

Member functions

Inherited from integral_constant (is_false and is_true are typedefs of integral_constant instantiations):
operator bool
Returns value (public member function)

AltStyle によって変換されたページ (->オリジナル) /