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 (public функция-член) |
| (destructor) |
if *this is the last instance created, flushes the default C++ streams (public функция-член) |
[править] См. также
| считывает данные из стандартного входного потока 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. | |
| пишет в стандартный выходной поток stdout
(глобальный объект) C 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. | |
| пишет в стандартный поток ошибок stderr
(глобальный объект) C 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. | |