[#bsl-vformat-06]
= xref:bsl.adoc[bsl]::vformat
:relfileprefix: ../
:mrdocs:

`vformat` overloads

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[bsl::string]
xref:bsl/vformat-0e8.adoc[vformat](
    std::string&lowbar;view fmtStr,
    std::format&lowbar;args args);
----

[.small]#xref:bsl/vformat-0e8.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:bsl/vformat-007.adoc[vformat](
    std::wstring&lowbar;view fmtStr,
    std::wformat&lowbar;args args);
----

[.small]#xref:bsl/vformat-007.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:bsl/vformat-0eb.adoc[vformat](
    xref:bsl/allocator-0df.adoc[allocator&lt;char&gt;] alloc,
    std::string&lowbar;view fmtStr,
    std::format&lowbar;args args);
----

[.small]#xref:bsl/vformat-0eb.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:bsl/vformat-0c3.adoc[vformat](
    xref:bsl/allocator-0df.adoc[allocator&lt;wchar&lowbar;t&gt;] alloc,
    std::wstring&lowbar;view fmtStr,
    std::wformat&lowbar;args args);
----

[.small]#xref:bsl/vformat-0c3.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/string.adoc[bsl::string]
xref:bsl/vformat-08.adoc[vformat](
    std::locale const& loc,
    std::string&lowbar;view fmtStr,
    std::format&lowbar;args args);
----

[.small]#xref:bsl/vformat-08.adoc[_» more&period;&period;&period;_]#

Format `args` according to `fmtStr` using locale `loc`&period;


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

[.small]#xref:bsl/vformat-0c2.adoc[_» more&period;&period;&period;_]#

Format `args` according to `fmtStr` using allocator and locale&period;


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

[.small]#xref:bsl/vformat-00b.adoc[_» more&period;&period;&period;_]#

Format `args` according to `fmtStr` using allocator and locale&period;


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

[.small]#xref:bsl/vformat-0ef.adoc[_» more&period;&period;&period;_]#

== Return Value

* the formatted string
* the formatted wide string

== Parameters

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


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