std::ios_base::Init
Aus 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; |
||
Diese Klasse wird verwendet, um sicherzustellen, dass die Standard-C + +-Streams (std::cin, std::cout, etc.) korrekt initialisiert und zerstört. Die Klasse verfolgt, wie viele Instanzen von ihm erstellt und initialisiert die C + +-Streams, wenn die erste Instanz wird, sowie spült konstruiert die Output-Streams, wenn die letzte Instanz zerstört .
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.
[Bearbeiten] Member-Funktionen
(constructor) |
if *this is the first instance created, initializes the default C++ streams (öffentliche Elementfunktion) |
(destructor) |
if *this is the last instance created, flushes the default C++ streams (öffentliche Elementfunktion) |
[Bearbeiten] Siehe auch
}} liest aus der Standard-C-Input-Stream stdin
(globales Objekt) Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
schreibt in den Standard-C Ausgabe-Stream stdout (globales Objekt) | |
schreibt der Standard-C-Fehler Stream stderr, unbuffered
(globales Objekt) Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
schreibt der Standard-C-Fehler Stream stderr
(globales Objekt) Original: The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |