# std::stacktrace_entry::operator bool

> C++ Atlas: `cppatlas.com/w/cpp/utility/stacktrace_entry/operator_bool` | Source: https://en.cppreference.com/w/cpp/utility/stacktrace_entry/operator_bool | Domain: Utility | Standards: C++23

Checks whether the stacktrace_entry is non-empty, i.e. it represents an evaluation in a stacktrace.

## Official Specification Summary (cppreference)

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

Checks whether the `stacktrace_entry` is non-empty, i.e. it represents an evaluation in a stacktrace.

### Parameters

(none)

### Return value

`true` if the `stacktrace_entry` is non-empty, `false` otherwise.

### Notes

A non-empty `stacktrace_entry` can be obtained from a `std::basic_stacktrace` created by `std::basic_stacktrace::current` or a copy of such `std::basic_stacktrace`.

An empty `stacktrace_entry` can be created by the default constructor.

### Example

> Note: This section is incomplete Reason: no example

---
Attribution: content from https://en.cppreference.com/w/cpp/utility/stacktrace_entry/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.