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

`vformat` overloads

== Synopses

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

Format the specified `args` according to the specification given by the specified `fmtStr` and return the result&period; In the event of an error throw the exception `format&lowbar;error`&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 the specified `args` according to the specification given by the specified `fmtStr` and return the result&period; In the event of an error throw the exception `format&lowbar;error`&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 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 throw the exception `format&lowbar;error`&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 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 throw the exception `format&lowbar;error`&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 the specified `args` according to the specification given by the specified `fmtStr` in the locale of the specified `loc` and return the result&period; In the event of an error throw the exception `format&lowbar;error`&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 the specified `args` according to the specification given by the specified `fmtStr` in the locale of the specified `loc` and return the result&period; In the event of an error throw the exception `format&lowbar;error`&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 the specified `args` according to the specification given by the specified `fmtStr` in the locale of the specified `loc`, using the specified `allocator` to supply memory (if required), and return the result&period; In the event of an error throw the exception `format&lowbar;error`&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 the specified `args` according to the specification given by the specified `fmtStr` in the locale of the specified `loc`, using the specified `allocator` to supply memory (if required), and return the result&period; In the event of an error throw the exception `format&lowbar;error`&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;_]#


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