generic_category
表示一般错误的类别。
const error_category& generic_category() noexcept;
备注
generic_category
对象是 error_category 的实现。
is_error_code_enum_v
is_error_code_enum
值的帮助程序变量模板。
template <class T>
constexpr bool is_error_code_enum_v = is_error_code_enum<T>::value;
is_error_condition_enum_v
is_error_condition_enum
值的帮助程序变量模板。
template <class T>
constexpr bool is_error_condition_enum_v = is_error_condition_enum<T>::value;
make_error_code
创建错误代码对象。
error_code make_error_code(std::errc error) noexcept;
参数
error
要存储在错误代码对象中的 std::errc
枚举值。
返回值
错误代码对象。
make_error_condition
创建错误条件对象。
error_condition make_error_condition(std::errc error) noexcept;
参数
error
要存储在错误条件对象中的 std::errc
枚举值。
返回值
错误条件对象。
system_category
表示作系统错误的类别。
const error_category& system_category() noexcept;
备注
system_category
对象是 error_category 的实现。