Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Assigns a new enumeration value to the error_condition object.
template<class _Enum>
error_condition(_Enum error,
typename enable_if<is_error_condition_enum<_Enum>::value,
error_condition>::type&
operator=(Enum _Errcode);
Parameters
Parameter |
Description |
|---|---|
_Errcode |
The enumeration value to assign to the error_condition object. |
Return Value
A reference to the error_condition object that is being assigned the new enumeration value by the member function.
Remarks
The member operator stores (value_type)error as the error code value and a pointer to the generic_category. It returns *this.
Requirements
Header: <system_error>
Namespace: std