fmt::dynamic_format_arg_store::push_back

push_back overloads

Synopses

Declared in <fmt/args.h>

Adds a reference to the argument into the dynamic store for later passing to a formatting function.

template<typename T>
void
push_back(std::reference_wrapper<T> arg);
» more...

Adds an argument into the dynamic store for later passing to a formatting function.

template<typename T>
void
push_back(T const& arg);
» more...

Adds named argument into the dynamic store for later passing to a formatting function. std::reference_wrapper is supported to avoid copying of the argument. The name is always copied into the store.

template<typename T>
void
push_back(named_arg<T, char_type> const& arg);
» more...

Parameters

NameDescription
argA reference wrapper for the argument to add.