error_condition::error_condition
Constructs an object of type error_condition.
error_condition();
error_condition(value_type _Val, const error_category& _Cat);
template<class _Enum>
error_condition(_Enum _Errcode,
typename enable_if<is_error_condition_enum<_Enum>::value,
error_code>::type * = 0);
Parameters
Parameter |
Description |
---|---|
_Val |
The error code value to store in the error_condition. |
_Cat |
The error category to store in the error_condition. |
_Errcode |
The enumeration value to store in the error_condition. |
Remarks
The first constructor stores a zero error code value and a pointer to the generic_category.
The second constructor stores _Val as the error code value and a pointer to error_category.
The third constructor stores (value_type)_Errcode as the error code value and a pointer to the generic_category.
Requirements
Header: <system_error>
Namespace: std