<random>

函式模板 (function template)
<random>

std::關係運算符

相等 (1)
template <class IntType>bool operator== ( const poisson_distribution<IntType>& lhs,                  const poisson_distribution<IntType>& rhs );
不等 (2)
template <class IntType>bool operator!= ( const poisson_distribution<IntType>& lhs,                  const poisson_distribution<IntType>& rhs );
關係運算符
泊松分佈 物件 lhsrhs 執行相應的相等或不等比較操作。

如果兩個分佈具有相同的引數以及(若有)相同的內部狀態,使得它們在使用相等的 生成器 呼叫其 operator() 時產生相同的隨機數序列,則這兩個分佈相等。

引數

lhs, rhs
泊松分佈 物件(分別位於運算子的左側和右側),它們具有相同的模板引數(IntType).

返回值

如果條件成立,則為 true,並且否則為 false。

另見