◐ Shell
clean mode source ↗

std::basic_ios::setstate — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

void setstate( iostate state );

Définit l'erreur de flux drapeaux state en plus de définir des indicateurs actuellement. Appelle essentiellement clear(rdstate() | state). Peut lever une exception .

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.

Paramètres

state -

drapeaux de flux d'erreur d'état à définir. Elle peut être une combinaison des constantes suivantes:

Constante

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

pas d'erreur

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

erreur de flux irrécupérables

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

d'entrée / sortie de l'opération a échoué (erreur de formatage ou d'extraction)

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

séquence d'entrée associé a atteint la fin de fichier

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:

Constante

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

pas d'erreur

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

erreur de flux irrécupérables

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

d'entrée / sortie de l'opération a échoué (erreur de formatage ou d'extraction)

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

séquence d'entrée associé a atteint la fin de fichier

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.

Retourne la valeur

(Aucun)

Original:

(none)

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

Exemple

Voir aussi

retourne drapeaux nationaux

Original:

returns state flags

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


(fonction membre publique) [edit]

efface les indicateurs d'erreur et eof

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.


(fonction membre publique) [edit]