◐ Shell
clean mode source ↗

std::basic_ios::clear – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

void clear( iostate state = goodbit );

Löscht die Stream error state flags, indem Sie ihnen den Wert der state. Wenn rdbuf() == 0 dann state | badbit zugeordnet ist. Kann eine Ausnahme werfen .

Original:

Clears the stream error state flags by assigning them the value of state. If rdbuf() == 0 then state | badbit is assigned. May throw an exception.

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

Parameter

state -

neuer Fehler Status-Flags setzen. Es kann eine Kombination der folgenden Konstanten sein:

Constant

Original:

Constant

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

Explanation
goodbit

kein Fehler

Original:

no error

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

badbit

uneinbringlich Stream Fehler

Original:

irrecoverable stream error

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

failbit

Input / Output-Vorgang ist fehlgeschlagen (Formatierung oder Extraktion Fehler)

Original:

input/output operation failed (formatting or extraction error)

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

eofbit

assoziiert Eingabesequenz hat end-of-Datei erreicht

Original:

associated input sequence has reached end-of-file

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

Original:

new error state flags setting. It can be a combination of the following constants:

Constant

Original:

Constant

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

Explanation
goodbit

kein Fehler

Original:

no error

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

badbit

uneinbringlich Stream Fehler

Original:

irrecoverable stream error

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

failbit

Input / Output-Vorgang ist fehlgeschlagen (Formatierung oder Extraktion Fehler)

Original:

input/output operation failed (formatting or extraction error)

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

eofbit

assoziiert Eingabesequenz hat end-of-Datei erreicht

Original:

associated input sequence has reached end-of-file

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

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

Rückgabewert

(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.

Beispiel

Siehe auch

}

setzt Staatsflaggen

Original:

sets state flags

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]
gibt Statusflaggen
(öffentliche Elementfunktion) [edit]