The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
class ostream_withassign
ostream                                     Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  Description
 
  The ostream_withassign class is a variant of ostream that allows object
  assignment. The predefined objects cout, cerr, and clog are objects of
  this class and thus may be reassigned at run time to a different ostream
  object.
 
  A program that normally sends output to stdout, for example, could be
  temporarily directed to send its output to a disk file.
 
  Predefined Objects
 
  There are three predefined objects of class ostream_withassign. They are
  connected as follows:
 
  cout   Standard output (file descriptor 1).
 
  cerr   Unit buffered standard error (file descriptor 2).
 
  clog   Fully buffered standard error (file descriptor 2).
 
  Unit buffering, as used by cerr, means that characters are flushed after
  each insertion operation. The objects cin, cerr, and clog are tied to
  cout so that use of any of these will cause cout to be flushed.
 
  #include <iostream.h>
 
  See Also
 
  istream_withassign
 
  Public Members
 
  Construction/Destruction
 
  ostream_withassign   Constructs an ostream_withassign object.
 
  ~ostream_withassign   Destroys an ostream_withassign object.
 
  Operators
 
  operator =   Assignment operator.
 
 
                                     -♦-