std::error_code::clear
void clear() noexcept; | (since C++11) |
Заменяет код ошибки и категорию ошибки значениями по умолчанию.
Эквивалентно *this = error_code(0, std::system_category()).
Пример
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/error/error_code/clear