virtual protected member function
Synchronize stream buffer
It is called to synchronize the stream buffer with the controlled sequence (like the file in the case of file streams). The public member function pubsync calls this protected member function to perform this action.
This is a virtual member function that can be redefined for a specific behavior in derived classes. Its default behavior in streambuf is to do nothing and return a zero value.
The standard derived class filebuf overrides this function (see filebuf::sync).
Parameters
none
Return Value
In case of success, zero is returned.
Errors are expected to be signaled by any other value, like -1.
Basic template member declaration
( basic_streambuf<charT,traits> )
See also
|