<random>

函式模板 (function template)
<random>

std::關係運算符

相等 (1)
template <class IntType>bool operator== ( const bernoulli_distribution<IntType>& lhs,                  const bernoulli_distribution<IntType>& rhs );
不等 (2)
template <class IntType>bool operator!= ( const bernoulli_distribution<IntType>& lhs,                  const bernoulli_distribution<IntType>& rhs );
關係運算符
lhsrhs兩個bernoulli_distribution物件執行適當的相等或不相等比較操作。

當使用相等的生成器呼叫其operator()時,如果兩個分佈具有相同的引數和內部狀態(如果有),它們就會相等,從而產生相同的隨機數序列。

引數

lhs, rhs
作為運算子左右兩邊的bernoulli_distribution物件,它們都具有相同的模板引數(IntType).

返回值

真 (true)如果條件成立,則為 true,並且假 (false)否則為 false。

另見