[syserr.errcode.constructors] (original) (raw)
19 Diagnostics library [diagnostics]
19.5 System error support [syserr]
19.5.4 Class error_code [syserr.errcode]
19.5.4.2 Constructors [syserr.errcode.constructors]
Effects: Initializes val_ with 0and cat_ with &system_category().
error_code(int val, const error_category& cat) noexcept;
Effects: Initializes val_ with valand cat_ with &cat.
template<class ErrorCodeEnum> error_code(ErrorCodeEnum e) noexcept;
Effects: Equivalent to:error_code ec = make_error_code(e); assign(ec.value(), ec.category());