Syntax
ostream& flush();
Remarks
Flushes the buffer associated with this stream. The flush function calls the sync function of the associated streambuf.
See Also
ostream flush manipulator, streambuf::sync