A dynamic list of formatting arguments with storage.

Synopsis

Declared in <fmt/args.h>

template<typename Context>
class dynamic_format_arg_store;

Description

It can be implicitly converted into fmt::basic_format_args for passing into type‐erased formatting functions such as fmt::vformat.

Member Functions

Name

Description

dynamic_format_arg_store [constructor]

Default constructor

clear

Erase all elements from the store.

push_back

push_back overloads

reserve

Reserves space to store at least new_cap arguments including new_cap_named named arguments.

size

Returns the number of elements in the store.

operator basic_format_args<Context>

Conversion to basic_format_args

Friends

Name

Description

fmt::basic_format_args

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:

Created with MrDocs