public member function
<system_error>

std::error_code::default_error_condition

error_condition default_error_condition() const noexcept;
Default error condition
Returns the default error_condition object associated with the error_code object.

This function returns the same as if the following member was called:
1
category().default_error_condition(value())

error_category::default_error_condition is a virtual member function, that can operate differently for each category.

Parameters

none

Return value

An error_condition object that corresponds to the error_code object.

See also