public member function

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.



Return value

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

See also