\rst A printf
argument formatter based on the curiously recurring template pattern <http://en.wikipedia.org/wiki/Curiously_recurring_template_pattern>
_.
To use ~fmtBasicPrintfArgFormatter
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 ~fmtBasicPrintfArgFormatter
or its superclass will be called. \endrst
Definition at line 220 of file printf.h.