19 Diagnostics library [diagnostics]

19.5 System error support [syserr]

19.5.5 Class error_­condition [syserr.errcondition]

19.5.5.2 Constructors [syserr.errcondition.constructors]

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