C + + Konzepte: UnformattedInputFunction – cppreference.com
Aus cppreference.com
<metanoindex/>
Anforderungen
Ein UnformattedInputFunction ist ein Strom-Eingang Funktion, die die folgenden führt:
Original:
An UnformattedInputFunction is a stream input function that performs the following:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Erzeugt ein Objekt vom Typ
basic_istream::sentrymit automatischer Lagerdauer und mit dem
noskipwsArgument auftrue, die folgende ausführtOriginal:
Constructs an object of type
basic_istream::sentrywith automatic storage duration and with the
noskipwsargument set totrue, which performs the followingThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
wenn
eofbitoder
badbitauf der Input-Stream gesetzt, setzt die
ios_base::failurefailbitals gut, und wenn Ausnahmen failbit in diesem Eingabestrom die Ausnahme Maske aktiviert, wirft.
Original:
if
eofbitor
badbitare set on the input stream, sets the
ios_base::failurefailbitas well, and if exceptions on failbit are enabled in this input stream's exception mask, throws.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.spült die tie () 'd Ausgabe-Stream, falls zutreffend
Original:
flushes the tie()'d output stream, if applicable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Prüft den Status der Wache durch den Aufruf
basic_ios::goodsentry::operator bool(), das entsprichtist .
Original:
Checks the status of the sentry by calling
basic_ios::goodsentry::operator bool(), which is equivalent to.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.Wenn die Wache wieder
falseoder sentry Konstruktor hat eine Ausnahme:Original:
If the sentry returned
falseor sentry's constructor threw an exception:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
setzt die Anzahl von extrahierten Zeichen (gcount) in dem Eingangsstrom Null ist
Original:
sets the number of extracted characters (gcount) in the input stream to zero
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.wenn die Funktion aufgerufen wurde, um zu einer Anordnung von
CharTeinzutragen, schreibtCharT()(der Null-Zeichen) zu der ersten Stelle des ArraysOriginal:
if the function was called to write to an array of
CharT, writesCharT()(the null character) to the first location of the arrayThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Wenn die Wache
truezurückgekehrt, führt der EingangOriginal:
If the sentry returned
true, performs the inputThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
wenn eine Ausnahme während der Eingabe ausgelöst wird, setzt
badbitim Eingabestrom. Wenn Ausnahmen badbit in diesem Strom der Ausnahmeliste Maske aktiviert ist, wird die Ausnahme auch erneut ausgelöst .Original:
if an exception is thrown during input, sets
badbitin the input stream. If exceptions on badbit are enabled in this stream's exception mask, the exception is also rethrown.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.Wenn keine Ausnahme während der Eingabe geworfen wurde, legt die Anzahl der extrahierten Zeichen (gcount) in der Input-Stream .
Original:
If no exception was thrown during input, sets the number of extracted characters (gcount) in the input stream.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
In jedem Fall, ob Abschlusswiderstand by Exception oder Rückgabe wird der Wache destructor bevor diese Funktion aufgerufen .
Original:
In any event, whether terminating by exception or returning, the sentry's destructor is called before leaving this function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Standard-Bibliothek
Die folgenden Standard-Bibliothek Funktionen sind UnformattedInputFunctions .
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::getline, außer dass es nicht modifiziert gcount .
Original:
std::getline, except that it does not modify gcount.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.- basic_istream::operator>>(basic_streambuf*)
- basic_istream::get
- basic_istream::getline
- basic_istream::ignore
- basic_istream::peek
- basic_istream::read
- basic_istream::readsome
- basic_istream::putback
, außer dass es erste löscht
eofbitOriginal:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::unget
, außer dass es erste löscht
eofbitOriginal:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::sync
, außer dass es nicht modifiziert gcount
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::tellg
, außer dass es nicht modifiziert gcount
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::seekg
, außer dass es erste löscht
eofbitund verändert nicht gcountOriginal:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. std::ws, außer dass es nicht modifiziert gcount
Original:
std::ws, except that it does not modify gcount
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.