fmt::arg

arg overloads

Synopses

Declared in <fmt/base.h>

Returns a named argument to be used in a formatting function. It should only be used in a call to a formatting function.

template<typename T>
named_arg<T>
arg(
    char const* name,
    T const& arg);
» more...

A wchar_t counterpart of fmt::arg.

template<typename T>
named_arg<T, wchar_t>
arg(
    wchar_t const* name,
    T const& arg);
» more...

Return Value

A named argument wrapping arg under name.

Parameters

NameDescription
nameThe name of the argument.
argThe argument value.