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