Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::formatter<std::stacktrace_entry>

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.

Utility
  • C++20
  • C++23
1 min readView on cppreference
NotebookLM
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.

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.

Example

This section is incomplete
Reason: no example

See also

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

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.