函式模板
<random>

std::關係運算符

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

相同型別的兩個引擎如果具有相同的內部狀態,則認為它們相等,因此對這兩個物件的 operator() 成員函式的任意次數呼叫都將生成相同的數值序列。

引數

lhs, rhs
相同型別的 linear_congruential_engine 物件(分別位於運算子的左側和右側)。

返回值

true如果它們比較相等,則為真,並且false否則為 false。

複雜度

常量。

另見