operator<<,>>(std::linear_congruential_engine)
De cppreference.com
|
|
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. |
<metanoindex/>
<tbody> </tbody> 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) | (depuis 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) | (depuis C++11) |
1)
Sérialise l'état interne de l'
e nombre pseudo-aléatoire du moteur comme une séquence de nombres décimaux séparés par un ou plusieurs espaces, et l'insère dans le flux ost. Le caractère de remplissage et de mise en page les drapeaux du courant sont ignorés et sans affectation .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)
Restaure l'état interne de l'
e nombre pseudo-aléatoire du moteur à partir de la représentation sérialisée, qui a été créé par un appel antérieur à operator<< utilisant un flux avec le même lieu imprégné et le CharT même Traits. Si l'entrée ne peut pas être désérialisé, e reste inchangé et s'élève sur failbit 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 une représentation textuelle est écrite en utilisant
os << x et que la représentation est rétablie dans le même ou un autre objet y du même type en utilisant is >> y, puis 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 |
Paramètres
| ost | - | flux de sortie pour insérer les données d'
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 | - | flux d'entrée pour extraire les données à 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 | - | moteur de nombres pseudo-aléatoires
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. |
Retourne la valeur
1)
ost2)
istComplexité
| This section is incomplete |
Exceptions
1)
(Aucun)
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)
Peut générer
std::ios::failure lors de la mise 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.