[#BloombergLP-bslfmt-print-054] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::print :relfileprefix: ../../ :mrdocs: `print` overloads == Synopses Declared in `<bslfmt_print_imp.h>` Format the specified `args` using `bsl::format_to` according to the specification given by the specified `fmt`, and write the result of this operation to `stdout`. In the event of formatting error throw the exception `format_error`, in the event of I/O error throw the exception `system_error`, on allocation failure throw `bad_alloc`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> void xref:BloombergLP/bslfmt/print-05d.adoc[print]( bsl::format_string<t_ARGS...> fmt, t_ARGS&&... args); ---- [.small]#xref:BloombergLP/bslfmt/print-05d.adoc[_» more..._]# Format the specified `args` using `bsl::format_to` according to the specification given by the specified `fmt`, and write the result of this operation to the specified `stream`. In the event of formatting error throw the exception `format_error`, in the event of I/O error throw the exception `system_error`, on allocation failure throw `bad_alloc`. The behavior is undefined unless `stream` is a valid pointer to an output C stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> void xref:BloombergLP/bslfmt/print-02.adoc[print]( std::ostream& stream, bsl::format_string<t_ARGS...> fmt, t_ARGS&&... args); ---- [.small]#xref:BloombergLP/bslfmt/print-02.adoc[_» more..._]# Format the specified `args` using `bsl::format_to` according to the specification given by the specified `fmt`, and write the result of this operation to the specified `stream`. In the event of formatting error throw the exception `format_error`, in the event of I/O error throw the exception `system_error`, on allocation failure throw `bad_alloc`. The behavior is undefined unless `stream` is a valid pointer to an output C stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ARGS> void xref:BloombergLP/bslfmt/print-09.adoc[print]( FILE* stream, bsl::format_string<t_ARGS...> fmt, t_ARGS&&... args); ---- [.small]#xref:BloombergLP/bslfmt/print-09.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#