<system_error>
函数
generic_category
表示一般错误的类别。
const error_category& generic_category() noexcept;
备注
generic_category
对象是 error_category 的实现。
is_error_code_enum_v
template <class T>
inline constexpr bool is_error_code_enum_v = is_error_code_enum<T>::value;
is_error_condition_enum_v
template <class T>
inline 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 的实现。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈