Namespaces
Variants
Views
Actions

std::ios_base::Init

From cppreference.com
< cpp‎ | io‎ | ios base
Revision as of 17:09, 2 November 2012 by P12bot (Talk | contribs)

class Init;

This class is used to ensure that the default C++ streams (std::cin, std::cout, etc.) are properly initialized and destructed. The class tracks how many instances of it are created and initializes the C++ streams when the first instance is constructed as well as flushes the output streams when the last instance is destructed.

Member functions

(constructor)
if *this is the first instance created, initializes the default C++ streams
(public member function)
(destructor)
if *this is the last instance created, flushes the default C++ streams
(public member function)

See also

Template:cpp/io/dcl list cinTemplate:cpp/io/dcl list coutTemplate:cpp/io/dcl list cerrTemplate:cpp/io/dcl list clog