std::error_code::clear
来自cppreference.com
< cpp | error | error code
工具库
诊断库
std::error_code
成员函数 | ||||
修改器 | ||||
error_code::clear | ||||
观察器 | ||||
非成员函数 | ||||
(C++20 前)(C++20 前)(C++20) | ||||
辅助类 | ||||
void clear() noexcept; | (C++11 起) | |
以默认值替换错误码和错误类别。
等价于 *this = error_code(0, std::system_category()) 。
参数
(无)
返回值
(无)