operator==,!=(std::discrete_distribution)
提供: cppreference.com
< cpp | numeric | random | discrete distribution
template< class ResultType > bool operator==( const discrete_distribution<ResultType>& lhs, |
(1) | |
template< class ResultType > bool operator!=( const discrete_distribution<ResultType>& lhs, |
(2) | |
2つの分布オブジェクトを比較します。 パラメータ値と内部状態が同じであれば、2つの分布オブジェクトは等しくなります。
1) 2つの分布オブジェクトが等しいかどうか比較します。
2) 2つの分布オブジェクトが等しくないかどうか比較します。
[編集] 引数
lhs, rhs | - | 比較する分布オブジェクト |
[編集] 戻り値
1) 分布オブジェクトが等しい場合は true、そうでなければ false。
2) 分布オブジェクトが等しくない場合は true、そうでなければ false。
[編集] 計算量
一定。