operator==,!=(std::linear_congruential_engine)
提供: cppreference.com
< cpp | numeric | random | linear congruential engine
template< class UIntType, UIntType a, UIntType c, UIntType m > bool operator==( const linear_congruential_engine<UIntType,a,c,m>& lhs, |
(1) | (C++11以上) |
template< class UIntType, UIntType a, UIntType c, UIntType m > bool operator!=( const linear_congruential_engine<UIntType,a,c,m>& lhs, |
(2) | (C++11以上) |
2つの乱数エンジンを比較します。 2つのエンジンの内部状態が等しい場合、つまり、 operator() の任意の回数の呼び出しに対して同等な値を生成するであろう場合、2つのエンジンは等しくなります。
[編集] 引数
lhs, rhs | - | 比較するエンジン |
[編集] 戻り値
1) エンジンが同等な場合は true、そうでなければ false。
2) エンジンが同等でない場合は true、そうでなければ false。
[編集] 例外
(なし)