function template
<random>

std::relational operators

equality (1)
template <class RealType>bool operator== ( const exponential_distribution<RealType>& lhs,                  const exponential_distribution<RealType>& rhs );
inequality (2)
template <class RealType>bool operator!= ( const exponential_distribution<RealType>& lhs,                  const exponential_distribution<RealType>& rhs );
Relational operators
Performs the appropriate equality or inequality comparison operation between the exponential_distribution objects lhs and rhs.

Two distributions compare equal if they have the same parameters and the same internal state (if any) that makes them produce the same sequence of random numbers when their operator() is invoked using equal generators.

Parameters

lhs, rhs
exponential_distribution objects (to the left- and right-hand side of the operator, respectively), having both the same template parameter (IntType).

Return Value

true if the condition holds, and false otherwise.

See also