[#bsl-basic_syncbuf-emit]
= xref:bsl.adoc[bsl]::xref:bsl/basic_syncbuf.adoc[basic&lowbar;syncbuf]::emit
:relfileprefix: ../../
:mrdocs:

Atomically transfer any characters buffered by this object to the wrapped stream buffer, so that it appears in the output stream as a contiguous sequence of characters&period; The wrapped stream buffer is flushed if and only if a call was made to `sync` since the most recent call to `emit` or construction&period; Return `true` if `get&lowbar;wrapped() !&equals; nullptr`, and all of the characters in the associated output were successfully transferred, and the flush (if any) succeeded&semi; return `false` otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
emit();
----


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