A view of a collection of formatting arguments. To avoid lifetime issues it should only be used as a parameter type in type-erased functions such as vformat:
Declared in <fmt/base.h>
template<typename Context>
class basic_format_args;
void vlog(fmt::string_view fmt, fmt::format_args args); // OK fmt::format_args args = fmt::make_format_args(); // Dangling reference
| Name | Description |
|---|---|
format_arg | The type of a single type-erased formatting argument. |
| Name | Description |
|---|---|
basic_format_args [constructor] | Constructors |
get | get overloads |
get_id | Returns the id of the named argument with the specified name. |
max_size | Returns the number of arguments. |
| Name | Description |
|---|---|
args_ [variant member] | Type-erased arguments, used when is_packed() returns false. |
values_ [variant member] | Packed argument values, used when is_packed() returns true. |