
The predefined streams cin, cout, cerr, and clog are examples of synchronized streams:
cin is tied to cout; i.e., before each input operation on cin, the output stream cout is forced to flush its buffer.
cerr is synchronized using the unitbuf format flag; i.e., after each output to cerr, its buffer is flushed.
clog is connected to the same output channel and thus behaves like cerr, except that it is not synchronized with any of the other standard streams; i.e., it does not have the unitbuf flag set.
©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.