|
|
Defined in header <stacktrace> | ||
class stacktrace_entry; | (since C++23) | |
Thestacktrace_entry
class provides operations for querying information about an evaluation in a stacktrace. Eachstacktrace_entry
object is either empty, or represents an evaluation in a stacktrace.
stacktrace_entry
modelsstd::regular andstd::three_way_comparable<std::strong_ordering>.
Contents |
native_handle_type | implementation-defined native handle type |
constructs a newstacktrace_entry (public member function)[edit] | |
(destructor) | destroys thestacktrace_entry (public member function) |
assigns the contents of onestacktrace_entry to another(public member function) | |
Observers | |
gets the implementation-defined native handle of thestacktrace_entry (public member function) | |
checks whether thestacktrace_entry is empty(public member function) | |
Query | |
gets the description of the evaluation represented by thestacktrace_entry (public member function) | |
gets the name of the source file that lexically contains the expression or statement whose evaluation is represented by thestacktrace_entry (public member function)[edit] | |
gets the line number that lexically relates the evaluation represented by thestacktrace_entry (public member function)[edit] |
(C++23) | compares twostacktrace_entry values(function) |
(C++23) | returns a string with a description of thestacktrace_entry (function)[edit] |
(C++23) | performs stream output ofstacktrace_entry (function template)[edit] |
hash support forstd::stacktrace_entry (class template specialization)[edit] | |
formatting support forstacktrace_entry (class template specialization)[edit] |
boost::stacktrace::frame
(available inBoost.Stacktrace) can be used instead whenstd::stacktrace_entry
is not available.
Feature-test macro | Value | Std | Feature |
---|---|---|---|
__cpp_lib_stacktrace | 202011L | (C++23) | Stacktrace library |
This section is incomplete Reason: no example |
(C++23) | approximate representation of an invocation sequence consists of stacktrace entries (class template)[edit] |
(C++20) | a class representing information about the source code, such as file names, line numbers, and function names (class)[edit] |