ios_base::Init
(embedded class)
ios_base
  cplusplus.com  

Ensures the construction of standard stream objects.
  The construction of the member Init object ensures that the standard iostream objects (cin, cout, cerr, clog, wcin, wcout, wcerr, wclog) are properly constructed.
  The class mantains an internal (private member) counter with the number of existing ios_base-derived objects.

class ios_base::Init {
public:
  Init();
  ~Init();
}

Members.

Init();
  Constructs an object of class ios_base::Init. Increases the internal counter by one. If the internal counter was zero the standard iostream objects are constructed and initialized.
~Init();
  Destroys an object of class ios_base::Init. Decreases the internal counter by one. If the internal counter's value is one, the flush members of the standard iostream objects are called.

See also.
  ios_base class


© The C++ Resources Network, 2001