operator<<(std::uniform_int_distribution), operator>>(std::uniform_int_distribution)
提供:cppreference.com
< cpp | numeric | random | uniform int distribution
|
|
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 > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& ost, |
(1) | |
| template< class CharT, class Traits, class ResultType > std::basic_istream<CharT,Traits>& operator>>( std::basic_istream<CharT,Traits>& ist, |
(2) | |
d擬似乱数分布にストリーム入出力操作を実行します.Original:
Performs stream input and output operations on pseudo-random number distribution
d.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) ostに分布パラメータと内部状態のテキスト表現を書き込みます。書式化フラグとostの塗りつぶしの文字が変更されていません.Original:
Writes a textual representation of the distribution parameters and internal state to
ost as textual representation. The formatting flags and fill character of ost are unchanged.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.
istから読み出されたデータを使って、分布パラメータと内部状態を復元します。 istの書式フラグは変更されません。データは、同じロケールでCharTとTraitsテンプレートパラメータをストリームを使用して書かれている必要があり、そうでない場合の動作は未定義である。不正な入力が検出された場合、ist.setstate(std::ios::failbit)はstd::ios_base::failureを投げる可能性がある、と呼ばれています。 dその場合には変更されていません.Original:
Restores the distribution parameters and internal state with data read from
ist. The formatting flags of ist are unchanged. The data must have been written using a stream with the same locale, CharT and Traits template parameters, otherwise the behavior is undefined. If bad input is encountered, ist.setstate(std::ios::failbit) is called, which may throw std::ios_base::failure. d is unchanged in that case.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.
[編集] パラメータ
| 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. |
| d | - | 擬似乱数分布
Original: pseudo-random number distribution The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 値を返します
1) ost
2) ist
[編集] 例外
1)(なし)
2) 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.
不正な入力でstd::ios_base::failureをスローすることがあります.
Original:
may throw std::ios_base::failure on bad input.
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.