public member function
<system_error>

std::error_condition::operator bool

explicit operator bool() const noexcept;
Convert to bool
Returns whether the error condition has a numerical value other than 0.

If it is zero (which is generally used to represent no error), the function returns false, otherwise it returns true.

Parameters

none

Return value

true if the condition's numerical value is not zero.
false otherwise.

See also