BloombergLP::bslfmt::vformat

Format args according to the specification in fmt.

Synopsis

Declared in <bslfmt_format_imp.h>

bsl::string
vformat(
    std::string_view fmt,
    format_args args);

Description

Format the specified args according to the specification given by the specified fmt and return the result. In the event of an error the exception format_error is thrown.

Return Value

the formatted string

Parameters

NameDescription
fmtformat string
argstype-erased format arguments