A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/random/subtract_with_carry_engine/operators/ below:

function template

<random>

std::relational operators equality (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 );
inequality (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 );

Relational operators

Performs the appropriate equality or inequality comparison operation between the subtract_with_carry_engine objects lhs and rhs.

Two engines of the same type compare equal if they have both the same internal state, and hence any number of future calls to the operator() member on both objects would generate the same sequence of values.



Parameters
lhs, rhs
subtract_with_carry_engine objects of the same type (to the left- and right-hand side of the operator, respectively).

Return Valuetrue if they compare equal, and false otherwise.

Complexity Linear on the state size (template parameter r).

See also
subtract_with_carry_engine::seed
Seed engine (public member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4