This header is part of the Input/output library.
Including <iostream>
behaves as if it defines a static storage duration object of type std::ios_base::Init, whose constructor initializes the standard stream objects if it is the first std::ios_base::Init
object to be constructed, and whose destructor flushes those objects (except for cin
and wcin
) if it is the last std::ios_base::Init
object to be destroyed.
#include <ios> #include <streambuf> #include <istream> #include <ostream> namespace std { extern istream cin; extern ostream cout; extern ostream cerr; extern ostream clog; extern wistream wcin; extern wostream wcout; extern wostream wcerr; extern wostream wclog; }[edit] Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR Applied to Behavior as published Correct behavior LWG 155 C++98 the type of the static object wasstd::basic_ios::Init
std::ios_base::Init
LWG 1123 C++98 including <iostream>
did not guarantee the
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4