Namespaces
Variants
Actions

std::formatter<std::stacktrace_entry>

From cppreference.com
 
C++
 
Diagnostics library
 
std::stacktrace_entry
Defined in header <stacktrace>
template<>
struct formatter<std::stacktrace_entry>;
(since C++23)

The template specialization of std::formatter for std::stacktrace_entry allows users to convert a stacktrace entry object to string using formatting functions such as std::format.

[edit] Format specification

The syntax of format specifications is:

fill-and-align (optional) width (optional)

fill-and-align and width have the same meaning as in standard format specification.

The formatted output matches the result of to_string, adjusted as appropriate for the format specifiers.

[edit] Example

[edit] See also

(C++20)
defines formatting rules for a given type
(class template) [edit]
(C++23)
prints to stdout or a file stream using formatted representation of the arguments
(function template) [edit]

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