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

Synopsis

Declared in <fmt/base.h>

template<
    typename Char,
    typename T>
/* implementation-defined */
arg(
    Char const* name,
    T const& arg);

Description

*Example:

fmt::print("The answer is {answer}.", fmt::arg("answer", 42));

Return Value

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

Created with MrDocs