Namespaces
Variants

std::error_code:: clear

From cppreference.net
Utilities library
void clear ( ) noexcept ;
(自 C++11 起)

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

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

参数

(无)

返回值

(无)