std::error_condition::operator bool - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::error_condition::operator bool

From cppreference.com
< cpp‎ | error‎ | error condition

explicit operator bool() const; |  | (since C++11)

Checks whether the stored error code is not zero.

### [edit] Parameters

(none)

### [edit] Return value

true if value != 0, false otherwise.

### [edit] Exceptions

`noexcept` specification:
noexcept
Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/error/error_condition/operator_bool&oldid=62717"
Category:

- unconditionally noexcept