function template
<random>

std::relational operators

equality (1)
template <class UIntType, size_t w, size_t n, size_t m, size_t r,
          UIntType a, size_t u, UIntType d, size_t s,
          UIntType b, size_t t, UIntType c, size_t l, UIntType f>
bool operator== ( const mersenne_twister_engine<UIntType,w,n,m,r,a,u,d,s,b,t,c,l,f>& lhs,
                  const mersenne_twister_engine<UIntType,w,n,m,r,a,u,d,s,b,t,c,l,f>& rhs );
inequality (2)
template <class UIntType, size_t w, size_t n, size_t m, size_t r,
          UIntType a, size_t u, UIntType d, size_t s,
          UIntType b, size_t t, UIntType c, size_t l, UIntType f>
bool operator!= ( const mersenne_twister_engine<UIntType,w,n,m,r,a,u,d,s,b,t,c,l,f>& lhs,
                  const mersenne_twister_engine<UIntType,w,n,m,r,a,u,d,s,b,t,c,l,f>& rhs );
Relational operators
Performs the appropriate equality or inequality comparison operation between the mersenne_twister_engine objects lhs and rhs.

Two engines of the same type compare equal if they have both the same internal state, and hence any number of future calls to the operator() member on both objects would generate the same sequence of values.

Parameters

lhs, rhs
mersenne_twister_engine objects of the same type (to the left- and right-hand side of the operator, respectively).

Return Value

true if they compare equal, and false otherwise.

Complexity

Linear on the state size (template parameter n).

See also