[#bsl-basic_stringbuf-sync] = xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic_stringbuf]::sync :relfileprefix: ../../ :mrdocs: Synchronizes the buffer arrays with the controlled sequences. == Synopsis Declared in `<bslstl_stringbuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int sync(); ---- == Description Each derived class provides its own appropriate behavior, including the definition of _failure._ [NOTE] ==== Base class version does nothing, returns zero. ==== == Return Value ‐1 on failure. [.small]#Created with https://www.mrdocs.com[MrDocs]#