operator<<,>>(std::independent_bits_engine)
Da cppreference.com
< cpp | numeric | random | independent bits engine
![]() |
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. |
template< class CharT, class Traits, class ResultType, class Engine, size_t w, class UIntType > |
(1) | (desde C++11) |
template< class CharT, class Traits, class ResultType, class Engine, size_t w, class UIntType > |
(2) | (desde C++11) |
1)
Serializa o estado interno do adaptador de motor de número pseudo-aleatório como uma seqüência de números decimais separados por um ou mais espaços, e insere-o para o fluxo de
ost
. O personagem de preenchimento e as bandeiras de formatação do fluxo são ignorados e não afetado. Original:
Serializes the internal state of the pseudo-random number engine adaptor 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)
Restaura o estado interno do pseudo-aleatório
e
adaptador número do motor a partir da representação serializada, que foi criado por uma chamada anterior a operator<<
usando uma corrente com a mesma localidade e imbuído do mesmo e CharT
Traits
. Se a entrada não pode ser serializado, e
é deixado inalterado e failbit
é gerado em ist
Original:
Restores the internal state of the pseudo-random number engine adaptor
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 ist
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.
Se uma representação textual é escrito usando os << x e de que a representação é restaurado para o mesmo ou um diferente
y
objecto do mesmo tipo, usando is >> y, então 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 seção está incompleta Motivo: standard also defines what the textual representation consists of |
Índice |
[editar] Parâmetros
ost | - | fluxo de saída para inserir os dados 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 | - | fluxo de entrada para extrair os dados a partir 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 | - | adaptador de motor para serializar ou restaurar
Original: engine adaptor to serialize or restore The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
1)
ost
2)
ist
[editar] Complexidade
Esta seção está incompleta |
[editar] Exceções
1)
(Nenhum)
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)
Pode lançar std::ios::failure ao definir
failbit
Original:
May throw std::ios::failure when setting
failbit
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.