public member function


template <class ErrorCodeEnum>
  error_code& operator= (ErrorCodeEnum e) noexcept;
Assign error code
Calls make_error_code to construct an error code from e, whose value is assigned to the error_code object.

This function only participates in overload resolution if is_error_code_enum<ErrorCodeEnum>::value is true.

Member function assign can be used to assign a new value to the error_code object using an integer value and a category, instead of an enum value.


Error code enum value of an enum type for which is_error_code_enum has a value member with a value of true.

Return value


See also