[#bsl-basic_syncbuf-sync] = xref:bsl.adoc[bsl]::xref:bsl/basic_syncbuf.adoc[basic_syncbuf]::sync :relfileprefix: ../../ :mrdocs: Request the wrapped streambuf flush on the next `emit` call, then call `emit` if the "emit‐on‐sync" flag is `true`. Return 0 on success and ‐1 if the `emit` call has failed. == Synopsis Declared in `<bslstl_syncbuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int sync() override; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#