Namespaces
Variants

std::error_code::clear

来自 zh.cppreference.net
 
 
 
 
 
void clear() noexcept;
(自 C++11 起)

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

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

参数

(无)

返回值

(无)