名前空間
変種
操作

operator==,!=(std::subtract_with_carry_engine)

提供: cppreference.com
 
 
 
 
 
template<class UIntType, size_t w, size_t s, size_t r >

bool operator==(const subtract_with_carry_engine<UIntType,w,s,r>& lhs,

                 const subtract_with_carry_engine<UIntType,w,s,r>& rhs );
(1) (C++11以上)
template<class UIntType, size_t w, size_t s, size_t r >

bool operator!=(const subtract_with_carry_engine<UIntType,w,s,r>& lhs,

                 const subtract_with_carry_engine<UIntType,w,s,r>& rhs );
(2) (C++11以上)

2つの乱数エンジンを比較します。 2つのエンジンの内部状態が等しい場合、つまり、 operator() の任意の回数の呼び出しに対して同等な値を生成するであろう場合、2つのエンジンは等しくなります。

[編集]引数

lhs, rhs - 比較するエンジン

[編集]戻り値

1) エンジンが同等な場合は true、そうでなければ false
2) エンジンが同等でない場合は true、そうでなければ false

[編集]例外

(なし)

close