[#BloombergLP-bslx-GenericOutStream-flush]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslx.adoc[bslx]::xref:BloombergLP/bslx/GenericOutStream.adoc[GenericOutStream]::flush
:relfileprefix: ../../../
:mrdocs:

If this stream is valid, invoke the `pubsync` method on the underlying stream supplied at construction of this object&semi; otherwise, this function has no effect&period;

== Synopsis

Declared in `&lt;bslx&lowbar;genericoutstream&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslx/GenericOutStream.adoc[GenericOutStream&lt;STREAMBUF&gt;]&
flush();
----

== Return Value

a reference to this stream


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