Conceptos C++: UnformattedInputFunction - cppreference.com
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate. La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Requisitos
Un UnformattedInputFunction es una función de entrada de corriente que realiza lo siguiente:
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.
Construye un objeto de tipo
basic_istream::sentrycon duración de almacenamiento automático y con el argumento
noskipwsestablece entrue, que realiza lo siguienteOriginal:
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.
si
eofbito
badbitse establecen en el flujo de entrada, establece el
ios_base::failurefailbittambién, y si las excepciones a failbit están habilitadas en la máscara de excepción esta corriente de entrada, arroja.
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.vacía el empate () 'd stream de salida, si procede
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.
Comprueba el estado de la centinela llamando
basic_ios::goodsentry::operator bool(), que es 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.Si el centinela volvió
falseo constructor centinela lanzó una excepción: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.
establece el número de caracteres extraídos (gcount) en el flujo de entrada a cero
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.si la función se llama a escribir en una matriz de
CharT, escribeCharT()(el carácter nulo) a la primera localización de la 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.
Si el centinela volvió
true, realiza la 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.
si se produce una excepción durante la entrada, establece
badbiten el flujo de entrada. Si las excepciones en badbit están habilitadas en la máscara de excepción de esta corriente, la excepción se vuelve a iniciar también .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.Si no es la excepción fue lanzada durante la entrada, establece el número de caracteres extraídos (gcount) en la corriente 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.
En cualquier caso, si termina por excepción o devolver, destructor del centinela se llama antes de salir de esta función .
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 estándar
Las siguientes funciones de la biblioteca estándar son 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, excepto que no 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
, excepto que primero despeja
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
, excepto que primero despeja
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
, excepto que no 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
, excepto que no 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
, excepto que primero despeja
eofbity no 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, excepto que no 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.