Compartilhar via


error_code::operator bool

Casts a variable of type error_code.

explicit operator bool() const;

Return Value

The Boolean value of the error_code object.

Remarks

The operator returns a value convertible to true only if value is not equal to zero. The return type is convertible only to bool, not to void * or other known scalar types.

Requirements

Header: <system_error>

Namespace: std

See Also

Reference

error_code Class