[#BloombergLP-bslfmt-vformat-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::vformat
:relfileprefix: ../../
:mrdocs:

Format the specified `args` according to the specification given by the specified `fmtStr`, using the specified `allocator` to supply memory (if required), and return the result&period; In the event of an error the exception `format&lowbar;error` is thrown&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/wstring.adoc[bsl::wstring]
vformat(
    xref:bsl/allocator-0df.adoc[bsl::allocator&lt;wchar&lowbar;t&gt;] alloc,
    std::wstring&lowbar;view fmtStr,
    xref:BloombergLP/bslfmt/wformat_args.adoc[wformat&lowbar;args] args);
----


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