[#ScopedDataStreamUsage-2constructor-0f]
= xref:ScopedDataStreamUsage.adoc[ScopedDataStreamUsage]::ScopedDataStreamUsage
:relfileprefix: ../
:mrdocs:

Take a reference to a stream that must be empty, asserting emptiness on entry&period;

== Synopsis

Declared in `&lt;streams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
ScopedDataStreamUsage(xref:DataStream.adoc[DataStream]& stream);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stream*
| Stream to guard&semi; must be empty and is cleared on destruction&period;
|===


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