[#BloombergLP-bslfmt-vformat_to-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::vformat&lowbar;to
:relfileprefix: ../../
:mrdocs:

Format the specified `args` according to the specification given by the specified `fmtStr`, and write the result of this operation into the output iterator given by the specified `out` parameter&period; In the event of an error the exception `format&lowbar;error` is thrown&period; Behavior is undefined if `out` is not a valid output iterator&period;

== Synopsis

Declared in `&lt;bslfmt&lowbar;format&lowbar;imp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;OUT&gt;
t&lowbar;OUT
vformat&lowbar;to(
    t&lowbar;OUT out,
    std::string&lowbar;view fmtStr,
    xref:BloombergLP/bslfmt/format_args.adoc[format&lowbar;args] args);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
