[#bsl-format-00] = xref:bsl.adoc[bsl]::format :relfileprefix: ../ :mrdocs: `format` overloads == Synopses Declared in `<bslfmt_format.h>` Format `args` according to `fmtStr` and return a `bsl::string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> xref:bsl/string.adoc[bsl::string] xref:bsl/format-07.adoc[format]( format_string<t_ARGS...> fmtStr, t_ARGS&&... args); ---- [.small]#xref:bsl/format-07.adoc[_» more..._]# Format `args` according to `fmtStr` and return a `bsl::wstring`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> xref:bsl/wstring.adoc[bsl::wstring] xref:bsl/format-05.adoc[format]( wformat_string<t_ARGS...> fmtStr, t_ARGS&&... args); ---- [.small]#xref:bsl/format-05.adoc[_» more..._]# Format `args` according to `fmtStr` using allocator `alloc`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> xref:bsl/string.adoc[bsl::string] xref:bsl/format-0e.adoc[format]( xref:bsl/allocator-0df.adoc[allocator<char>] alloc, format_string<t_ARGS...> fmtStr, t_ARGS&&... args); ---- [.small]#xref:bsl/format-0e.adoc[_» more..._]# Format `args` according to `fmtStr` using allocator `alloc`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> xref:bsl/wstring.adoc[bsl::wstring] xref:bsl/format-0ce.adoc[format]( xref:bsl/allocator-0df.adoc[allocator<wchar_t>] alloc, wformat_string<t_ARGS...> fmtStr, t_ARGS&&... args); ---- [.small]#xref:bsl/format-0ce.adoc[_» more..._]# Format `args` according to `fmtStr` using locale `loc`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> xref:bsl/string.adoc[bsl::string] xref:bsl/format-09.adoc[format]( std::locale const& loc, format_string<t_ARGS...> fmtStr, t_ARGS&&... args); ---- [.small]#xref:bsl/format-09.adoc[_» more..._]# Format `args` according to `fmtStr` using locale `loc`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> xref:bsl/wstring.adoc[bsl::wstring] xref:bsl/format-0a.adoc[format]( std::locale const& loc, wformat_string<t_ARGS...> fmtStr, t_ARGS&&... args); ---- [.small]#xref:bsl/format-0a.adoc[_» more..._]# Format `args` according to `fmtStr` using `alloc` and locale `loc`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> xref:bsl/string.adoc[bsl::string] xref:bsl/format-0d.adoc[format]( xref:bsl/allocator-0df.adoc[allocator<char>] alloc, std::locale const& loc, format_string<t_ARGS...> fmtStr, t_ARGS&&... args); ---- [.small]#xref:bsl/format-0d.adoc[_» more..._]# Format `args` according to `fmtStr` using `alloc` and locale `loc`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> xref:bsl/wstring.adoc[bsl::wstring] xref:bsl/format-0cb.adoc[format]( xref:bsl/allocator-0df.adoc[allocator<wchar_t>] alloc, std::locale const& loc, wformat_string<t_ARGS...> fmtStr, t_ARGS&&... args); ---- [.small]#xref:bsl/format-0cb.adoc[_» more..._]# == Return Value * the formatted string * the formatted wide string == Parameters [cols="1,4"] |=== | Name| Description | *fmtStr* | format string | *args* | values to format | *alloc* | allocator used to supply memory | *loc* | locale used for locale‐dependent formatting |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#