18 Diagnostics library [diagnostics]

18.5 System error support [syserr]

18.5.4 Class error_­condition [syserr.errcondition] 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;
Ensures: *this == make_­error_­condition(e).
Returns: *this.
Remarks: This operator shall not participate in overload resolution unless
is_­error_­condition_­enum_­v<ErrorConditionEnum> is true.
void clear() noexcept;
Ensures: value() == 0 and category() == generic_­category().