<random>

函式模板
<random>

std::關係運算符

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

當使用相等的 生成器 呼叫其 operator() 時,兩個具有相同引數和內部狀態(如果有)的分佈會進行比較,這些狀態使其能夠生成相同的隨機數序列。

引數

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

返回值

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

另見