operator<<,>>(std::independent_bits_engine)
Материал из 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) | (начиная с C++11) |
| template< class CharT, class Traits, class ResultType, class Engine, size_t w, class UIntType > |
(2) | (начиная с C++11) |
1)
Сериализует внутреннее состояние псевдослучайных чисел двигателя адаптер в виде последовательности десятичных чисел, разделенных одним или несколькими пробелами, и вставляет его в поток
ost. Символ-заполнитель и форматирование флаги потока игнорируются и не влияет. 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)
Восстанавливает внутреннее состояние псевдослучайных чисел
e адаптером двигателя от сериализованного представления, которое было создано ранее призыв к operator<< с помощью потока с тем же проникнут языка и той же CharT и Traits. Если вход не может быть десериализован, e остается неизменным и failbit поднимается на istOriginal:
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 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.
Если текстовое представление написана с использованием os << x и что представление восстановлен в той же или другой
y объект того же типа, используя is >> y, то 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.
| Этот раздел не завершён Причина: standard also defines what the textual representation consists of |
Содержание |
[править] Параметры
| ost | - | Выходной поток для вставки данных
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 | - | входной поток, чтобы извлечь данные
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 | - | Двигатель адаптер для сериализации или восстановления
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. |
[править] Возвращаемое значение
1)
ost2)
ist[править] Сложность
| Этот раздел не завершён |
[править] Исключения
1)
(Нет)
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)
Может бросить std::ios::failure при установке
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.