for ostream | ostream& flush (ostream& os); |
---|---|
basic template | template <class charT, class traits>basic_ostream<charT,traits>& flush (basic_ostream<charT,traits>& os); |
<<
) operations on output streams (see example below).flag | error |
---|---|
eofbit | - |
failbit | May be set if the construction of a sentry object failed. |
badbit | The synchronization operation failed (including if the function catches an exception thrown by an internal operation). When set, the integrity of the stream may have been affected. |
|
|
test.txt
to be flushed 100 times.