◐ Shell
clean mode source ↗

std::basic_ios::setstate – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

void setstate( iostate state );

Stellt den Strom Fehlerflags state neben aktuell eingestellten Flags. Im Wesentlichen fordert clear(rdstate() | state). Kann eine Ausnahme werfen .

Original:

Sets the stream error flags state in addition to currently set flags. Essentially calls clear(rdstate() | state). 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 -

Stream error state flags gesetzt. 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:

stream error state flags to set. 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

}

gibt Statusflaggen
(öffentliche Elementfunktion) [edit]

löscht Fehler und eof Fahnen

Original:

clears error and eof 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]