W3cubDocs

/C++

Standard library header <iostream>

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

<ios> (since C++11)
<streambuf> (since C++11)
<istream> (since C++11)
<ostream> (since C++11)

Objects

std::cin standard input
std::cout standard output
std::cerr standard error
std::clog standard log
std::wcin standard input
std::wcout standard output
std::wcerr standard error
std::wclog standard log

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

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/header/iostream