[#BloombergLP-bslfmt-vformat_to-03]
= 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 string addressed 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` does not point to a valid `bsl&colon;&colon;string` object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
vformat&lowbar;to(
    xref:bsl/string.adoc[bsl::string]* out,
    std::string&lowbar;view fmtStr,
    xref:BloombergLP/bslfmt/format_args.adoc[format&lowbar;args] args);
----


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