函式模板
<random>

std::關係運算符

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

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

引數

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

返回值

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

複雜度

線性依賴於狀態大小(模板引數r).

另見