<random>

函式模板 (function template)
<random>

std::關係運算符

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

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

引數

lhs, rhs
(運算子的)左側和右側的 cauchy_distribution 物件,都具有相同的模板引數(IntType).

返回值

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

另見