std::stacktrace_entry::description
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::description
std::string description() const;
(since C++23)
Returns a description of the evaluation represented by *this on success, or an empty string on failure other than allocation failure, e.g. when *this is empty.
[edit] Parameters
(none)
[edit] Return value
A description of the represented evaluation on success, an empty string on failure other than allocation failure.
[edit] Exceptions
Throws std::bad_alloc if memory for the internal data structures or the resulting string cannot be allocated.
[edit] Notes
Custom allocators support for this function is not provided, because the implementations usually require platform specific allocations, system calls and a lot of CPU intensive work, while a custom allocator does not provide benefits for this function as the platform specific operations take an order of magnitude more time than the allocation.
[edit] Example
This section is incomplete
Reason: no example
Reason: no example