Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Constructs an object of type error_code.
error_code();
error_code(value_type _Val, const error_category& _Cat);
template<class _Enum>
error_code(_Enum _Errcode,
typename enable_if<is_error_code_enum<_Enum>::value,
error_code>::type * = 0);
Parameters
Parameter |
Description |
---|---|
_Val |
The error code value to store in the error_code. |
_Cat |
The error category to store in the error_code. |
_Errcode |
The enumeration value to store in the error_code. |
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