function template
<random>

std::relational operators

equality (1)
template <class IntType>bool operator== ( const bernoulli_distribution<IntType>& lhs,                  const bernoulli_distribution<IntType>& rhs );
inequality (2)
template <class IntType>bool operator!= ( const bernoulli_distribution<IntType>& lhs,                  const bernoulli_distribution<IntType>& rhs );
Relational operators
Performs the appropriate equality or inequality comparison operation between the bernoulli_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
bernoulli_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