[#BloombergLP-bslim-FormatGuard-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::xref:BloombergLP/bslim/FormatGuard.adoc[FormatGuard]::FormatGuard
:relfileprefix: ../../../
:mrdocs:

Create a `FormatGuard` object saving the state of the specified `stream`&period;

== Synopsis

Declared in `&lt;bslim&lowbar;formatguard&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;TYPE,
    class CHAR&lowbar;TRAITS&gt;
explicit
FormatGuard(bsl::basic&lowbar;ostream&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS&gt;* stream);
----


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