public member function

<system_error>

std::error_code::clear

void clear() noexcept;

Clear error code

Clears the value in the error_code object so that it is set to a value of 0 of the system_category (indicating no error).

Parameters

none

Return value

none

See also

error_code::error_code
Construct error_code (public member function)
error_code::operator=
Assign error code (public member function)
error_code::assign
Assign error code (public member function)
error_code::operator bool
Convert to bool (public member function)