Namespaces
Variants
Actions

std::stacktrace_entry::operator bool

From cppreference.com
 
C++
 
Diagnostics library
 
std::stacktrace_entry
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.

Contents

[edit] Parameters

(none)

[edit] Return value

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

[edit] 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.

[edit] Example

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant