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
noneReturn 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
| streambuf::pubsync | Synchronize stream buffer (public member function) |
