Partager via


error_condition::operator=

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

See Also

Reference

error_condition Class