[#bsl-basic_stringbuf-sync]
= xref:bsl.adoc[bsl]::xref:bsl/basic_stringbuf.adoc[basic&lowbar;stringbuf]::sync
:relfileprefix: ../../
:mrdocs:

Synchronizes the buffer arrays with the controlled sequences&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
int
sync();
----

== Description

Each derived class provides its own appropriate behavior, including the definition of _failure&period;_

[NOTE]
====
Base class version does nothing, returns zero&period;

====

== Return Value

&hyphen;1 on failure&period;


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