<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
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<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.
You can help to correct and verify the translation. Click here for instructions.
- Constrói um objeto de basic_istream::sentry tipo com duração de armazenamento automático e com o argumento
noskipwsdefinido paratrue, que executa a seguinteOriginal:Constructs an object of type basic_istream::sentry with automatic storage duration and with thenoskipwsargument 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 eofbit ou badbit são definidas no fluxo de entrada, define o
failbit, bem como, e se exceções em failbit são habilitados na máscara este fluxo de entrada de exceção, joga ios_base::failure.Original:if eofbit or badbit are set on the input stream, sets thefailbitas well, and if exceptions on failbit are enabled in this input stream's exception mask, throws ios_base::failure.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 casoOriginal:flushes the tie()'d output stream, if applicableThe 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
sentry::operator bool(), o que é equivalente a basic_ios::good.Original:Checks the status of the sentry by callingsentry::operator bool(), which is equivalent to basic_ios::good.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 returnedfalseor 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 zeroOriginal:sets the number of extracted characters (gcount) in the input stream to zeroThe 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 ofCharT, 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 returnedtrue, 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, setsbadbitin 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 following standard library functions are
UnformattedInputFunctions.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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:basic_istream::putback, except that it first clearseofbitThe 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:basic_istream::unget, except that it first clearseofbitThe 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 gcountOriginal:basic_istream::sync, except that it does not modify gcountThe 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 gcountOriginal:basic_istream::tellg, except that it does not modify gcountThe 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:basic_istream::seekg, except that it first clearseofbitand does not modify gcountThe 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 gcountOriginal:std::ws, except that it does not modify gcountThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.