int pubsync();
(1)protected:
virtual int sync();
Synchronizes the controlled character sequence (the buffers) with the associated character sequence.
1) Calls sync()
of the most derived class
2) The base class version of this function has no effect. The derived classes may override this function to allow synchronizing the underlying device with the buffers.
For output streams, this typically results in writing the contents of the put area into the associated sequence, i.e. flushing of the output buffer. For input streams, this typically empties the get area and forces a re-read from the associated sequence to pick up recent changes. The default behavior (found, for example, in std::basic_stringbuf), is to do nothing.
[edit] Parameters(none)
[edit] Return value1) The return value of sync()
.
2) Returns â0â on success, -1 otherwise. The base class version returns â0â.
[edit] Example [edit] See also synchronizes with the underlying storage devicestd::basic_istream<CharT,Traits>
) [edit] writes characters to the associated file from the put area
std::basic_filebuf<CharT,Traits>
) [edit]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4