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

`vformat` overloads

== Synopses

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

Format `args` according to the specification in `fmt`&period;


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

[.small]#xref:BloombergLP/bslfmt/vformat-06.adoc[_» more&period;&period;&period;_]#

Format `args` according to the specification in `fmtStr`&period;


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

[.small]#xref:BloombergLP/bslfmt/vformat-0b.adoc[_» more&period;&period;&period;_]#

Format `args` according to `fmtStr` using the given allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[bsl::string]
xref:BloombergLP/bslfmt/vformat-0f.adoc[vformat](
    xref:bsl/allocator-0df.adoc[bsl::allocator&lt;char&gt;] alloc,
    std::string&lowbar;view fmtStr,
    xref:BloombergLP/bslfmt/format_args.adoc[format&lowbar;args] args);
----

[.small]#xref:BloombergLP/bslfmt/vformat-0f.adoc[_» more&period;&period;&period;_]#

Format `args` according to `fmtStr` using the given allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/wstring.adoc[bsl::wstring]
xref:BloombergLP/bslfmt/vformat-0c.adoc[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]#xref:BloombergLP/bslfmt/vformat-0c.adoc[_» more&period;&period;&period;_]#

== Return Value

* the formatted string
* the formatted wide string

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fmt*
| format string
| *args*
| type&hyphen;erased format arguments
| *fmtStr*
| wide format string
| *alloc*
| allocator used to supply memory
|===


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