A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/system_error/is_error_code_enum/ below:

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 type definition value_type bool type either true_type or false_type
Member constants Inherited from integral_constant (is_false and is_true are typedefs of integral_constant instantiations):
member constant definition value either 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)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4