Files
2025-10-25 03:02:53 +03:00

1.7 KiB

[stacktrace.format]

19 Diagnostics library [diagnostics]

19.6 Stacktrace [stacktrace]

19.6.5 Formatting support [stacktrace.format]

🔗

template<> struct formatter<stacktrace_entry>;

1

#

formatter<stacktrace_entry> interprets format-spec as a stacktrace-entry-format-spec.

The syntax of format specifications is as follows:

stacktrace-entry-format-spec :
fill-and-alignopt widthopt

[Note 1:

The productions fill-and-align and width are described in [format.string.std].

— end note]

2

#

A stacktrace_entry object se is formatted as if by copying to_string(se) through the output iterator of the context with additional padding and adjustments as specified by the format specifiers.

🔗

template<class Allocator> struct formatter<basic_stacktrace<Allocator>>;

3

#

For formatter<basic_stacktrace>,format-spec is empty.

4

#

A basic_stacktrace object s is formatted as if by copying to_string(s) through the output iterator of the context.