[stacktrace.format] (original) (raw)

19 Diagnostics library [diagnostics]

19.6.5 Formatting support [stacktrace.format]

template<> struct formatter<stacktrace_entry>;

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-align width

[Note 1:

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

— _end note_]

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>>;

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

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