[#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; otherwise, this function has no effect. == Synopsis Declared in `<bslx_genericoutstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslx/GenericOutStream.adoc[GenericOutStream<STREAMBUF>]& flush(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#