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_code object.
template<class _Enum>
typename enable_if<is_error_code_enum<_Enum>::value,
error_code>::type&
operator=(_Enum _Errcode);
Parameters
Parameter |
Description |
|---|---|
_Errcode |
The enumeration value to assign to the error_code object. |
Return Value
A reference to the error_code object that is being assigned the new enumeration value by the member function.
Remarks
The member operator stores (value_type)_Errcode as the error code value and a pointer to the generic_category. It returns *this.
Requirements
Header: <system_error>
Namespace: std