Template Function fmt::v6::visit_format_arg

Function Documentation

template<typename Visitor, typename Context>
auto fmt::v6::visit_format_arg(Visitor &&vis, const basic_format_arg<Context> &arg) -> decltype(vis(0))

Visits an argument dispatching to the appropriate visit method based on the argument type. For example, if the argument type is double then vis(value) will be called with the value of type double.