◐ Shell
clean mode source ↗

std::basic_ios::clear - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

void clear( iostate state = goodbit );

Limpa o fluxo de bandeiras do estado de erro, atribuindo-lhes o valor de state. Se, em seguida, rdbuf() == 0 state | badbit é atribuído. Pode lançar uma exceção.

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.

Parâmetros

state -

bandeiras novo estado de erro de ajuste. Ela pode ser uma combinação das seguintes constantes:

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

nenhum erro

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

erro de fluxo de irrecuperável

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

entrada / saída de operação falhou (formatação ou erro de extração)

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

seqüência de entrada associado atingiu o fim-de-arquivo

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:

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

nenhum erro

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

erro de fluxo de irrecuperável

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

entrada / saída de operação falhou (formatação ou erro de extração)

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

seqüência de entrada associado atingiu o fim-de-arquivo

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.

Valor de retorno

(Nenhum)

Original:

(none)

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

Exemplo

Veja também

define bandeiras estaduais

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.


(função pública membro) [edit]

retorna bandeiras estaduais

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.


(função pública membro) [edit]