public member function
<system_error>

std::error_condition::assign

void assign (int val, const error_category& cat) noexcept;
Assign error condition
Assigns the error_condition object a value of val associated with the error_category cat.

The assignment operator (=) can be used to assign a new value to the error_condition object by using an enum value instead.

Parameters

val
A numerical value identifying an error condition.
cat
A reference to an error_category object.

Return value

none

See also