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)
内部の一つ以上の空白で区切られた10進数のシーケンスとして擬似乱数エンジンのアダプタの状態、およびストリームに挿入し、それをシリアル化し
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は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 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.
| This section is incomplete Reason: 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[編集] 複雑
| This section is incomplete |
[編集] 例外
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を設定するとき
failbitをスローすることがありますOriginal:
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.