# std::error_condition::operator bool

> C++ Atlas: `cppatlas.com/w/cpp/error/error_condition/operator_bool` | Source: https://en.cppreference.com/w/cpp/error/error_condition/operator_bool | Domain: Diagnostics | Standards: C++11

Checks whether the stored error value is not zero.

## Official Specification Summary (cppreference)

```cpp
explicit operator bool() const noexcept; // (since C++11)
```

Checks whether the stored error value is not zero.

### Parameters

(none)

### Return value

`true` if `value != 0`, `false` otherwise.

---
Attribution: content from https://en.cppreference.com/w/cpp/error/error_condition/operator_bool (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.