operator==,!=(std::mersenne_twister_engine)
Min standard notice:
Compares two pseudo-random number engines. Two engines are equal, if their internal states are equivalent, that is, if they would generate equivalent values for any number of calls of operator().
# Declarations
friend bool operator==( const mersenne_twister_engine& lhs,
const mersenne_twister_engine& rhs );
(since C++11)
friend bool operator!=( const mersenne_twister_engine& lhs,
const mersenne_twister_engine& rhs );
(since C++11) (until C++20)
# Parameters
lhs, rhs: engines to compare
# Defect reports
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 3519 | C++11 | the form of equality operators were unspecified | specified to be hidden friends |