標準ライブラリヘッダ <iostream> - cppreference.com
提供: cppreference.com
このヘッダは入出力ライブラリの一部です。
<iostream> をインクルードすると、 std::ios_base::Init 型の静的記憶域期間のオブジェクトを定義したかのように振る舞い、それが最初に構築される std::ios_base::Init であればそのコンストラクタにより標準ストリームオブジェクトが初期化され、それが最後に破壊される std::ios_base::Init であればそのデストラクタがそれらのオブジェクト (cin および wcin を除く) をフラッシュします。
インクルード | |
(C++11) |
std::ios_base クラス、 std::basic_ios クラステンプレートおよびいくつかの typedef [edit] |
(C++11) |
std::basic_streambuf クラステンプレート [edit] |
(C++11) |
std::basic_istream クラステンプレートといくつかの typedef [edit] |
(C++11) |
std::basic_ostream、 std::basic_iostream クラステンプレートといくつかの typedef [edit] |
オブジェクト | |
| 標準 C 入力ストリーム stdin から読み込みます (グローバルオブジェクト) [edit] | |
| 標準 C 出力ストリーム stdout に書き込みます (グローバルオブジェクト) [edit] | |
| 標準 C エラーストリーム stderr に書き込みます。 バッファリングされません (グローバルオブジェクト) [edit] | |
| 標準 C エラーストリーム stderr に書き込みます (グローバルオブジェクト) [edit] | |
概要
#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; }