<div class="t-tr-text">C + +: conceitos<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> UnformattedInputFunction
De cppreference.com
<metanoindex/>
Requisitos
Uma UnformattedInputFunction é uma função de entrada de fluxo que executa o seguinte:
Original:
An UnformattedInputFunction is a stream input function that performs the following:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Constrói um objeto de
basic_istream::sentrytipo com duração de armazenamento automático e com o argumento
noskipwsdefinido paratrue, que executa a seguinteOriginal:
Constructs an object of type
basic_istream::sentrywith automatic storage duration and with the
noskipwsargument set totrue, which performs the followingThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
se
eofbitou
badbitsão definidas no fluxo de entrada, define o
ios_base::failurefailbit, bem como, e se exceções em failbit são habilitados na máscara este fluxo de entrada de exceção, joga.
Original:
if
eofbitor
badbitare set on the input stream, sets the
ios_base::failurefailbitas well, and if exceptions on failbit are enabled in this input stream's exception mask, throws.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.libera o empate () 'd fluxo de saída, se for o caso
Original:
flushes the tie()'d output stream, if applicable
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Verifica o estado da sentinela, chamando
basic_ios::goodsentry::operator bool(), o que é equivalente a.
Original:
Checks the status of the sentry by calling
basic_ios::goodsentry::operator bool(), which is equivalent to.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.Se a sentinela voltou
falseou construtor sentinela lançou uma exceção:Original:
If the sentry returned
falseor sentry's constructor threw an exception:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
define o número de caracteres extraídos (gcount) no fluxo de entrada de zero
Original:
sets the number of extracted characters (gcount) in the input stream to zero
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.se a função foi chamado para escrever para uma matriz de
CharT, escreveCharT()(o caractere nulo) para a primeira posição da matrizOriginal:
if the function was called to write to an array of
CharT, writesCharT()(the null character) to the first location of the arrayThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Se a sentinela voltou
true, realiza a entradaOriginal:
If the sentry returned
true, performs the inputThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
se uma exceção é lançada durante a entrada, define
badbitno fluxo de entrada. Se exceções em badbit são habilitados na máscara este fluxo de exceção, a exceção é relançada também.Original:
if an exception is thrown during input, sets
badbitin the input stream. If exceptions on badbit are enabled in this stream's exception mask, the exception is also rethrown.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.Se nenhuma exceção foi lançada durante a entrada, define o número de caracteres extraídos (gcount) no fluxo de entrada.
Original:
If no exception was thrown during input, sets the number of extracted characters (gcount) in the input stream.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Em qualquer caso, se extinguir por exceção ou retornando, destruidor da sentinela é chamado antes de deixar esta função.
Original:
In any event, whether terminating by exception or returning, the sentry's destructor is called before leaving this function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Biblioteca padrão
As seguintes funções da biblioteca padrão são UnformattedInputFunctions.
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::getline, exceto que ele não modifica gcount.
Original:
std::getline, except that it does not modify gcount.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.- basic_istream::operator>>(basic_streambuf*)
- basic_istream::get
- basic_istream::getline
- basic_istream::ignore
- basic_istream::peek
- basic_istream::read
- basic_istream::readsome
- basic_istream::putback
, exceto que ele primeiro limpa
eofbitOriginal:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::unget
, exceto que ele primeiro limpa
eofbitOriginal:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::sync
, exceto que ele não modifica gcount
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::tellg
, exceto que ele não modifica gcount
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - basic_istream::seekg
, exceto que ele primeiro limpa
eofbite não modifica gcountOriginal:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. std::ws, exceto que ele não modifica gcount
Original:
std::ws, except that it does not modify gcount
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.