C++ Manipulator nounitbufC++ manipulator nounitbuf() function is used to clear the unitbuf format flag for the str stream. When we set nounitbuf format flag, then it disables automatic flushing of the output stream after any output operation. SyntaxParameterstr: stream object whose format flag is affected. Return valueIt returns argument str. Data RacesData races may cause when modifies str concurrent access to the same stream object. Exceptionsstr is in a valid state, if an exception is thrown. Example 1Let's see the simple example to demonstrate the use of nounitbuf: Output: Note: - There is no output. Example 2Let's see another simple example: Output: ..(428 ms)....(853 ms)....(1281 ms)....(1708 ms)....(2131 ms)..
Next TopicC++ Manipulator
|