bsl::make_format_args

Create a type-erased argument store from the specified args.

Synopsis

Declared in <bslfmt_format.h>

template<
    class t_CONTEXT = std::format_context,
    class... t_ARGS>
auto
make_format_args(t_ARGS&... args);

Description

Return an object, whose type is not specified, holding an array of format_arg types constructed from the specified args. The type returned is implicitly convertible to a format_args holding a reference to the contained array. This function will statically assert if any of the specified template parameters t_ARGS is of type long double.

Return Value

an unspecified object convertible to format_args

Parameters

NameDescription
argsvalues to store as type-erased format arguments