operator<<,>>(std::subtract_with_carry_engine)
来自cppreference.com
< cpp | numeric | random | subtract with carry 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 UIntType, size_t w, size_t s, size_t r > |
(1) | (C++11 起) |
| template< class CharT, class Traits, class ResultType, class UIntType, size_t w, size_t s, size_t r > |
(2) | (C++11 起) |
1)
作為一個序列由一個或多個空格隔開的十進制數的偽隨機數引擎
e序列化的內部狀態,並把它插入到流ost。填充字元和格式化標誌的流被忽略,並且不會受到影響.....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)
恢復的偽隨機數引擎
e的序列化表示,這是由以前調用operator<<使用流具有相同一脈相承的語言環境和相同的CharT和Traits的內部狀態。如果無法反序列化的輸入,e保持不變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.
如果被寫入的文本表示使用os << x和該表示被恢復到相同的或不同的對象的相同的類型,使用
yis >> 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: 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. |
[编辑] 返回值
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.