Template Class arg_formatter

Inheritance Relationships

Base Type

Class Documentation

template<typename Range>
class fmt::v6::arg_formatter : public fmt::v6::internal::arg_formatter_base<Range>

The default argument formatter.

Public Types

using range = Range
using iterator = typename base::iterator
using format_specs = typename base::format_specs

Public Functions

arg_formatter(context_type &ctx, basic_format_parse_context<char_type> *parse_ctx = nullptr, format_specs *specs = nullptr)

Constructs an argument formatter object.

ctx* is a reference to the formatting context, specs* contains format specifier information for standard argument types.

iterator operator()(typename basic_format_arg<context_type>::handle handle)

Formats an argument of a user-defined type.