[#bsl-emit_on_flush]
= xref:bsl.adoc[bsl]::emit&lowbar;on&lowbar;flush
:relfileprefix: ../
:mrdocs:

If, for the specified `stream`, `stream&period;rdbuf()` is a `basic&lowbar;syncbuf&lt;CHAR,TRAITS,ALLOCATOR&gt;`, make `stream` emit (i&period;e&period;, transmit data to the wrapped stream buffer) when flushed, otherwise has no effect&period; Return `stream`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;ostream&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR,
    class TRAITS&gt;
basic&lowbar;ostream&lt;CHAR, TRAITS&gt;&
emit&lowbar;on&lowbar;flush(basic&lowbar;ostream&lt;CHAR, TRAITS&gt;& stream);
----


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