◐ Shell
clean mode source ↗

std::basic_istream::unget – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

Macht die zuletzt extrahierte Zeichenfolge wieder verfügbar .

Original:

Makes the most recently extracted character available again.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Zuerst löscht

eofbit

verhält sich dann wie UnformattedInputFunction. Nach dem Bau und Prüfung der Schildwache Objekt, ruft rdbuf()->sungetc() .

Original:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Wenn rdbuf()->sungetc() kehrt Traits::eof(), ruft setstate(badbit) .

Original:

If rdbuf()->sungetc() returns Traits::eof(), calls setstate(badbit).

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 setzt den Zähler auf Null gcount() .

Original:

In any case, sets the gcount() counter to zero.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parameter

(None)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Rückgabewert

*this

Beispiel

#include <sstream>
#include <iostream>
int main()
{
    std::istringstream s1("Hello, world.");
    char c1 = s1.get();
    if(s1.unget())
    {
        char c2 = s1.get();
        std::cout << "Got: " << c1 << " got again: " << c2 << '\n';
    }
}

Output:

Siehe auch

}

Extrahiere Zeichen
(öffentliche Elementfunktion) [edit]

liest das nächste Zeichen ohne es zu extrahieren

Original:

reads the next character without extracting it

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(öffentliche Elementfunktion) [edit]

setzt Zeichen in Input-Stream

Original:

puts character into input stream

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(öffentliche Elementfunktion) [edit]