operator<<,>>(std::linear_congruential_engine)
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í. |
template< class CharT, class Traits, class ResultType,
class UIntType, UIntType a, UIntType c, UIntType m >
std::basic_ostream<CharT,Traits>&
operator<<( std::basic_ostream<CharT,Traits>& ost,
const linear_congruential_engine<UIntType,a,c,m>& e );
|
(1) | (desde C++11) |
template< class CharT, class Traits, class ResultType,
class UIntType, UIntType a, UIntType c, UIntType m >
std::basic_istream<CharT,Traits>&
operator>>( std::basic_istream<CharT,Traits>& ist,
linear_congruential_engine<UIntType,a,c,m>& e );
|
(2) | (desde C++11) |
1)
Serializa el estado interno de la
e número pseudo-aleatorio motor como una secuencia de números decimales separados por uno o más espacios, y se inserta en la secuencia de ost. El carácter de relleno y las banderas de formato de la corriente se ignoran y no afectados .Original:
Serializes the internal state of the pseudo-random number engine
e as a sequence of decimal numbers separated by one or more spaces, and inserts it to the stream ost. The fill character and the formatting flags of the stream are ignored and unaffected.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.
2)
Restablece el estado interno del
e de números pseudo-aleatorios motor de la representación en serie, que fue creado por una llamada anterior a operator<< utilizando una corriente con la misma configuración regional imbuida y el CharT mismo y Traits. Si la entrada no se puede deserializar, e se mantiene sin cambios y failbit se alza sobre istOriginal:
Restores the internal state of the pseudo-random number engine
e from the serialized representation, which was created by an earlier call to operator<< using a stream with the same imbued locale and the same CharT and Traits. If the input cannot be deserialized, e is left unchanged and failbit is raised on istThe 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.
Si una representación de texto está escrito utilizando
os << x y que la representación se restaura en el mismo o un diferente y objeto del mismo tipo utilizando is >> y, entonces x==y .Original:
If a textual representation is written using
os << x and that representation is restored into the same or a different object y of the same type using is >> y, then x==y.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.
| Esta sección está incompleta Razón: standard also defines what the textual representation consists of |
Parámetros
| ost | - | flujo de salida para insertar los datos para
Original: output stream to insert the data to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| ist | - | flujo de entrada para extraer los datos de
Original: input stream to extract the data from The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| e | - | pseudo-aleatorio motor número
Original: pseudo-random number engine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valor de retorno
1)
ost2)
istComplejidad
| Esta sección está incompleta |
Excepciones
1)
(Ninguno)
Original:
(none)
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.
2)
Puede lanzar
std::ios::failure al establecer failbitOriginal:
May throw
std::ios::failure when setting failbitThe 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.