The Wayback Machine - https://web.archive.org/web/20201031114028/https://en.cppreference.com/w/cpp/header/iostream
Namespaces
Variants
Actions

Standard library header <iostream>

From cppreference.com
< cpp‎ | header
 
 
 

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.

Includes

(C++11)
std::ios_base class, std::basic_ios class template and several typedefs [edit]
std::basic_streambuf class template [edit]
(C++11)
std::basic_istream class template and several typedefs [edit]
(C++11)
std::basic_ostream, std::basic_iostream class templates and several typedefs [edit]

Objects

reads from the standard C input stream stdin
(global object)[edit]
writes to the standard C output stream stdout
(global object)[edit]
writes to the standard C error stream stderr, unbuffered
(global object)[edit]
writes to the standard C error stream stderr
(global object)[edit]

[edit]Synopsis

#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;}
close