basic_streambuf::sync
basic_streambuf::sync
To synchronize the controlled sequences in arrays.
virtual int sync();
If
pbase() is non null the characters between
pbase() and
pptr() are written to the control sequence. The function
setbuf() overrides the
basic_filebuf class.
Returns zero if successful and -1 if failure occurs.