std::stacktrace_entry
From cppreference.com
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)
stacktrace_entry
(C++23)
(C++23)
(C++26)
(C++26)
(C++26)
std::stacktrace_entry
Defined in header
<stacktrace>
class stacktrace_entry;
(since C++23)
The stacktrace_entry
class provides operations for querying information about an evaluation in a stacktrace. Each stacktrace_entry
object is either empty, or represents an evaluation in a stacktrace.
stacktrace_entry
models std::regular and std::three_way_comparable <std::strong_ordering >.
Contents
[edit] Member types
native_handle_type
implementation-defined native handle type
[edit] Member functions
(destructor)
stacktrace_entry
(public member function)
Observers
gets the implementation-defined native handle of the
(public member function)
stacktrace_entry
(public member function)
Query
gets the description of the evaluation represented by the
(public member function)
stacktrace_entry
(public member function)
gets the name of the source file that lexically contains the expression or statement whose evaluation is represented by the
(public member function) [edit]
stacktrace_entry
(public member function) [edit]
gets the line number that lexically relates the evaluation represented by the
(public member function) [edit]
stacktrace_entry
(public member function) [edit]
[edit] Non-member functions
[edit] Helper classes
[edit] Notes
boost::stacktrace::frame
(available in Boost.Stacktrace) can be used instead when std::stacktrace_entry
is not available.
Feature-test macro | Value | Std | Feature |
---|---|---|---|
__cpp_lib_stacktrace |
202011L |
(C++23) | Stacktrace library |
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
(C++23)
(class template) [edit]
(C++20)
(class) [edit]