operator<<,>>(std::independent_bits_engine)
Da cppreference.com.
< cpp | numeric | random | independent bits engine
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
template< class CharT, class Traits, class ResultType, class Engine, size_t w, class UIntType > |
(1) | (dal C++11) |
template< class CharT, class Traits, class ResultType, class Engine, size_t w, class UIntType > |
(2) | (dal C++11) |
1)
Serializza lo stato interno della pseudo-casuale adattatore motore numero come una sequenza di numeri decimali separati da uno o più spazi, e lo inserisce nel flusso
ost
. Il carattere di riempimento e le bandiere di formattazione del flusso vengono ignorati e non colpiti. 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)
Ripristina lo stato interno del pseudo-casuale
e
adattatore motore numero dalla rappresentazione serializzata, che è stato creato da una precedente chiamata a operator<<
utilizzando un flusso con le stesse impostazioni internazionali impregnato e il CharT
stesso Traits
. Se l'input non può essere deserializzato, e
rimane invariata e failbit
è sollevata su 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 una rappresentazione testuale è stato scritto utilizzando os << x e che la rappresentazione viene ripristinato nello stesso o in un
y
oggetto diverso dello stesso tipo utilizzando is >> y, poi 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.
This section is incomplete Reason: standard also defines what the textual representation consists of |
Indice |
[modifica] Parametri
ost | - | flusso di output per inserire i dati
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 | - | flusso di input per estrarre i dati da
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 | - | adattatore motore per serializzare o ripristinare
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. |
[modifica] Valore di ritorno
1)
ost
2)
ist
[modifica] Complessità
This section is incomplete |
[modifica] Eccezioni
1)
(Nessuno)
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)
Può lanciare std::ios::failure durante l'impostazione
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.