19 Diagnostics library [diagnostics]

19.5 System error support [syserr]

19.5.4 Class error_­condition [syserr.errcondition]

19.5.4.3 Modifiers [syserr.errcondition.modifiers]

void assign(int val, const error_category& cat) noexcept;
Ensures: val_­ == val and cat_­ == &cat.
template<class ErrorConditionEnum> error_condition& operator=(ErrorConditionEnum e) noexcept;
Constraints: is_­error_­condition_­enum_­v<ErrorConditionEnum> is true.
Ensures: *this == make_­error_­condition(e).
Returns: *this.
void clear() noexcept;
Ensures: value() == 0 and category() == generic_­category().