fmt::basic_format_args::basic_format_args

Constructors

Synopses

Declared in <fmt/base.h>

Constructs an empty basic_format_args object with no arguments.

constexpr
basic_format_args();
» more...

Constructs a basic_format_args object from format_arg_store.

template<
    int NUM_ARGS,
    int NUM_NAMED_ARGS,
    ullong DESC>
constexpr
basic_format_args(store<NUM_ARGS, NUM_NAMED_ARGS, DESC> const& s);
» more...

Constructs a basic_format_args object from format_arg_store.

template<
    int NUM_ARGS,
    int NUM_NAMED_ARGS,
    ullong DESC>
constexpr
basic_format_args(store<NUM_ARGS, NUM_NAMED_ARGS, DESC> const& s);
» more...

Constructs a basic_format_args object from a dynamic list of arguments.

constexpr
basic_format_args(
    format_arg const* args,
    int count,
    bool has_named = false);
» more...

Parameters

NameDescription
sThe argument store to reference.
argsPointer to the array of type-erased arguments.
countThe number of arguments in args.
has_namedWhether args includes named arguments.