Conceptos C++: UnformattedInputFunction
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í. |
[editar]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.
You can help to correct and verify the translation. Click here for instructions.
- Construye un objeto de tipo basic_istream::sentry con duración de almacenamiento automático y con el argumento
noskipws
establece en true, que realiza lo siguienteOriginal:Constructs an object of type basic_istream::sentry with automatic storage duration and with thenoskipws
argument set to true, 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 eofbit o badbit se establecen en el flujo de entrada, establece el
failbit
también, y si las excepciones a failbit están habilitadas en la máscara de excepción esta corriente de entrada, arroja ios_base::failure .Original:if eofbit or badbit are set on the input stream, sets thefailbit
as 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. - vacía el empate () 'd stream de salida, si procedeOriginal: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.
- Comprueba el estado de la centinela llamando
sentry::operator bool()
, que es 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. - Si el centinela volvió false o constructor centinela lanzó una excepción:Original:If the sentry returned false or 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 ceroOriginal: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. - 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 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.
- 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
badbit
en 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, setsbadbit
in 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.
[editar]Biblioteca estándar
Las siguientes funciones de la biblioteca estándar son
UnformattedInputFunction
s .Original:
The following standard library functions are
UnformattedInputFunction
s.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, 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
eofbit
Original:basic_istream::putback, except that it first clearseofbit
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
eofbit
Original:basic_istream::unget, except that it first clearseofbit
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 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, excepto que no 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, excepto que primero despeja
eofbit
y no modifica gcountOriginal:basic_istream::seekg, except that it first clearseofbit
and 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, excepto que no 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.