ΒΆtemplate <typename Char, typename T>
inline auto arg(const Char* name, const T& arg)
    -> detail::named_arg<Char, T>

Description

\rstReturns a named argument to be used in a formatting function. It should only be used in a call to a formatting function or `dynamic_format_arg_store::push_back`. *Example**:: fmt::print("Elapsed time: {s:.2f} seconds", fmt::arg("s", 1.23));\endrst

Declared at: third_party/fmt/include/fmt/core.h:1841

Templates

Char
T

Parameters

const Char* name
const T& arg