std::stacktrace_entry::operator bool
From cppreference.com
< cpp | utility | stacktrace entry
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Diagnostics library
(until C++20*)
(C++17)(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Exception handling failures
(C++11)
(until C++17*)
(until C++17*)
(until C++17*)
(until C++17*)
(TM TS)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++26)
(C++26)
(C++26)
std::stacktrace_entry
stacktrace_entry::operator bool
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
This section is incomplete
Reason: no example
Reason: no example