template<typename Impl, typename Char>
class fmt::BasicArgFormatter< Impl, Char >
An argument formatter based on the curiously recurring template pattern <http://en.wikipedia.org/wiki/Curiously_recurring_template_pattern>
_.
To use ~fmt::BasicArgFormatter
define a subclass that implements some or all of the visit methods with the same signatures as the methods in ~fmt::ArgVisitor
, for example, ~fmt::ArgVisitor::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 ~fmt::ArgVisitor::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 ~fmt::BasicArgFormatter
or its superclass will be called.
Definition at line 1962 of file format.h.