The predefined streams cin, cout, cerr, and clog are examples of synchronized streams:
cin is tied to cout; that is, before each input operation on cin, the output stream cout is forced to flush its buffer.
cerr is synchronized using the unitbuf format flag; that is, 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; that is, it does not have the unitbuf flag set.
OEM Edition, ©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.