「cpp/numeric/random/fisher f distribution/operator ltltgtgt」の版間の差分
提供: cppreference.com
< cpp | numeric | random | fisher f distribution
細 (1版:Translate from the English version) |
細 (r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh) |
||
1行: | 1行: | ||
{{page template|cpp/numeric/random/distribution/operator_ltltgtgt|fisher_f_distribution}} | {{page template|cpp/numeric/random/distribution/operator_ltltgtgt|fisher_f_distribution}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ |
2012年11月2日 (金) 20:24時点における版
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
に対してストリーム入出力操作を行います。
1) 分布のパラメータおよび内部状態のテキスト表現を
ost
に書き込みます。 ost
の書式フラグおよびフィル文字は変更されません。2) 分布のパラメータおよび内部状態を
ist
から読み込んだデータで復元します。 ist
の書式フラグは変更されません。 データは同じロケール、同じテンプレート引数 CharT
および Traits
を持つストリームを使用して書き込まれたものでなければならず、そうでなければ動作は未定義です。 不正な入力に遭遇した場合は、 ist.setstate(std::ios::failbit) が呼ばれ、その結果 std::ios_base::failure を投げる場合があります。 その場合 d
は変更されません。引数
ost | - | データを挿入する出力ストリーム |
ist | - | データを抽出する入力ストリーム |
d | - | 擬似乱数の分布 |
戻り値
1)
ost
。2)
ist
。例外
1) (なし)
2) 不正な入力の場合は std::ios_base::failure を投げるかもしれません。