std::ios_base::Init
提供:cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| class Init; |
||
このクラスは、デフォルトのC + +のストリーム(std::cin、std::coutなど)を適切に初期化され、破壊されていることを確認するために使用されます。クラスは、そのインスタンスが作成されますどのように多くの追跡およびC + +の最初のインスタンスが生成されたストリームと同様にフラッシュ最後のインスタンスが破棄された出力ストリームを初期化.
Original:
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 text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] メンバ関数
| (constructor) |
if *this is the first instance created, initializes the default C++ streams (パブリックメンバ関数) |
| (destructor) |
if *this is the last instance created, flushes the default C++ streams (パブリックメンバ関数) |
[編集] も参照してください
| 標準Cの入力ストリームから読み込みstdin
(グローバルオブジェクト) Original: reads from the standard C input stream stdin (グローバルオブジェクト) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 標準C出力ストリームstdout
(グローバルオブジェクト)に書き込みます Original: writes to the standard C output stream stdout (グローバルオブジェクト) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 標準Cのエラーストリームに書き込むstderr、unbuffered
(グローバルオブジェクト) Original: writes to the standard C error stream stderr, unbuffered (グローバルオブジェクト) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 標準Cエラーストリームstderr
(グローバルオブジェクト)に書き込みます Original: writes to the standard C error stream stderr (グローバルオブジェクト) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |