命名空间
变体
操作

std::error_code::clear

来自 cppreference.cn
< cpp‎ | 错误‎ | 错误码
 
 
 
 
 
void clear() noexcept;
(C++11 起)

将错误码和错误类别替换为默认值。

等价于 *this = error_code(0, std::system_category())

[编辑] 参数

(无)

[编辑] 返回值

(无)