A RetroSearch Logo

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

Search Query:

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

function template

<random>

std::relational operators equality (1)
template <class RealType>bool operator== ( const piecewise_linear_distribution<RealType>& lhs,                  const piecewise_linear_distribution<RealType>& rhs );
inequality (2)
template <class RealType>bool operator!= ( const piecewise_linear_distribution<RealType>& lhs,                  const piecewise_linear_distribution<RealType>& rhs );

Relational operators

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

Two distributions compare equal if they have the same parameters and the same internal state (if any) that makes them produce the same sequence of random numbers when their operator() is invoked using equal generators.



Parameters
lhs, rhs
piecewise_linear_distribution objects (to the left- and right-hand side of the operator, respectively), having both the same template parameter (IntType).

Return Valuetrue if the condition holds, and false otherwise.

See also
piecewise_linear_distribution::param
Distribution parameters (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