Espacios de nombres
Variantes
Acciones

Conceptos C++: UnformattedInputFunction

De cppreference.com
< cpp‎ | concept
 
 
C + + conceptos
Básica
Original:
Basic
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Biblioteca-Wide
Original:
Library-Wide
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Container
Original:
Container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Elementos contenedores
Original:
Container Elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Iterator
Original:
Iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Números aleatorios
Original:
Random Numbers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Concurrencia
Original:
Concurrency
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
Otros
Original:
Other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 

[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.
  • 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 siguiente
    Original:
    Constructs an object of type basic_istream::sentry with automatic storage duration and with the noskipws argument set to true, which 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.
  • 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 the failbit 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 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 sentry::operator bool(), que es equivalente a basic_ios::good .
    Original:
    Checks the status of the sentry by calling sentry::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 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, escribe CharT() (el carácter nulo) a la primera localización de la matriz
    Original:
    if the function was called to write to an array of CharT, writes CharT() (the null character) to the first location of the array
    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ó true, realiza la entrada
    Original:
    If the sentry returned true, performs the input
    The 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, sets badbit 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 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.
close