|
flushmanipulator function
<ostream> ostream& flush ( ostream& os ); Flush stream buffer Synchronizes the buffer associated with the stream to its controlled output sequence. This effectively means that all unwritten characters in the buffer are written to its controlled output sequence as soon as possible ("flushed").The manipulator only has meaning for buffered streams, in which case it effectively calls the pubsync member of the streambuf object (rdbuf()->pubsync()) associated to the stream. Standard output streams also have a member function with the same name and behavior (see ostream::flush). Parameters
Return ValueThe same stream object on which the operation was performed (parameter os).Example
When this code is executed the content of the file test.txt is updated 100 times. Basic template declaration
See also
|