[#BloombergLP-bslfmt-print-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::print
:relfileprefix: ../../
:mrdocs:

Format `args` per `fmt` and write the result to `stream`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; t&lowbar;ARGS&gt;
void
print(
    FILE* stream,
    bsl::format&lowbar;string&lt;t&lowbar;ARGS&period;&period;&period;&gt; fmt,
    t&lowbar;ARGS&&&period;&period;&period; args);
----

== Description

Format the specified `args` using `bsl&colon;&colon;format&lowbar;to` according to the specification given by the specified `fmt`, and write the result of this operation to the specified `stream`&period; In the event of formatting error throw the exception `format&lowbar;error`, in the event of I&sol;O error throw the exception `system&lowbar;error`, on allocation failure throw `bad&lowbar;alloc`&period; The behavior is undefined unless `stream` is a valid pointer to an output C stream&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| output C stream
| *fmt*
| format string
| *args*
| values to be formatted
|===


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