BloombergLP::bslfmt::basic_format_args::get

Return the argument held at the position given by the specified pos. If pos >= size() then a default-constructed basic_format_arg is returned.

Synopsis

Declared in <bslfmt_format_args.h>

basic_format_arg<t_CONTEXT>
get(size_t pos) const noexcept;

Return Value

the argument at pos, or a default-constructed argument if out of range

Parameters

NameDescription
poszero-based index of the argument to retrieve