Reference

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

error_condition::error_condition
Construct error_condition (public member function)
error_condition::operator=
Assign error condition (public member function)
error_condition::clear
Clear error condition (public member function)

AltStyle によって変換されたページ (->オリジナル) /