template<typename Impl, typename Char, typename Spec = fmt::FormatSpec>
class fmt::BasicArgFormatter< Impl, Char, Spec >
\rst An argument formatter based on the curiously recurring template pattern <http://en.wikipedia.org/wiki/Curiously_recurring_template_pattern>
_.
To use ~fmtBasicArgFormatter
define a subclass that implements some or all of the visit methods with the same signatures as the methods in ~fmt::ArgVisitor
, for example, ~fmtArgVisitor::visit_int()
. Pass the subclass as the Impl template parameter. When a formatting function processes an argument, it will dispatch to a visit method specific to the argument type. For example, if the argument type is double
then the ~fmtArgVisitor::visit_double()
method of a subclass will be called. If the subclass doesn't contain a method with this signature, then a corresponding method of ~fmtBasicArgFormatter
or its superclass will be called. \endrst
Definition at line 2258 of file format.h.
template<typename Impl , typename Char , typename Spec = fmt::FormatSpec>
\rst Constructs an argument formatter object. formatter* is a reference to the main formatter object, spec contains format specifier information for standard argument types, and fmt points to the part of the format string being parsed for custom argument types. \endrst
Definition at line 2272 of file format.h.