函式模板
<random>

std::關係運算符

相等 (1)
template <class Engine, size_t w, class UIntType>bool operator== ( const independent_bits_engine<Engine,w,UIntType>& lhs,                  const independent_bits_engine<Engine,p,UIntType>& rhs );
不等 (2)
template <class Engine, size_t w, class UIntType>bool operator!= ( const independent_bits_engine<Engine,w,UIntType>& lhs,                  const independent_bits_engine<Engine,p,UIntType>& rhs );
關係運算符
執行 independent_bits_engine 物件lhsrhs 之間適當的相等或不等比較運算。

如果相同型別的兩個引擎具有相同的內部狀態,因此對兩個物件呼叫 operator() 成員的任何數量的未來呼叫都將生成相同的值序列,則這兩個引擎相等。

引數

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

返回值

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

複雜度

狀態大小上是線性的。

另見