GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::ios_base::Init(3) C++ Standard Libary std::ios_base::Init(3)

std::ios_base::Init - std::ios_base::Init


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.


The header <iostream> behaves as if it defines (directly or indirectly) an instance
of std::ios_base::Init with static storage duration: this makes it safe to access
the standard I/O streams in the constructors and destructors of static objects with
ordered initialization (as long as #include <iostream> is included in the
translation unit before these objects were defined)


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


cin reads from the standard C input stream stdin
wcin (global object)
cout writes to the standard C output stream stdout
wcout (global object)
cerr writes to the standard C error stream stderr, unbuffered
wcerr (global object)
clog writes to the standard C error stream stderr
wclog (global object)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.