18 Diagnostics library [diagnostics]

18.5 System error support [syserr]

18.5.4 Class error_­condition [syserr.errcondition]

18.5.4.2 Constructors [syserr.errcondition.constructors]

error_condition() noexcept;
Effects: Constructs an object of type error_­condition.
Ensures: val_­ == 0 and cat_­ == &generic_­category().
error_condition(int val, const error_category& cat) noexcept;
Effects: Constructs an object of type error_­condition.
Ensures: val_­ == val and cat_­ == &cat.
template<class ErrorConditionEnum> error_condition(ErrorConditionEnum e) noexcept;
Effects: Constructs an object of type error_­condition.
Ensures: *this == make_­error_­condition(e).
Remarks: This constructor shall not participate in overload resolution unless
is_­error_­condition_­enum_­v<ErrorConditionEnum> is true.