W3cubDocs

/C++

operator==,!=(std::independent_bits_engine)

template< class Engine, size_t w, class UIntType >
bool operator==( const independent_bits_engine<Engine,w,UIntType>& lhs,
                 const independent_bits_engine<Engine,w,UIntType>& rhs );
(1) (since C++11)
template< class Engine, size_t w, class UIntType >
bool operator!=( const independent_bits_engine<Engine,w,UIntType>& lhs,
                 const independent_bits_engine<Engine,w,UIntType>& rhs );
(2) (since C++11)

Compares two pseudo-random number engine adaptors. Two engine adaptors are equal, if their underlying engines are equal and their internal state (if any) is equal, that is, if they would generate equivalent values for any number of calls of operator().

Parameters

lhs, rhs - engine adaptors to compare

Return value

1) true if the engine adaptors are equivalent, false otherwise.
2) true if the engine adaptors are not equivalent, false otherwise.

Exceptions

(none).

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/numeric/random/independent_bits_engine/operator_cmp