template< class ResultType > bool operator==( const discrete_distribution<ResultType>& lhs, const discrete_distribution<ResultType>& rhs ); | (1) | |
template< class ResultType > bool operator!=( const discrete_distribution<ResultType>& lhs, const discrete_distribution<ResultType>& rhs ); | (2) |
Compares two distribution objects. Two distribution objects are equal when parameter values and internal state is the same.
1) Compares two distribution objects for equality.
2) Compares two distribution objects for inequality.
lhs, rhs | - | distribution objects to compare |
1) true
if the distribution objects are equal, false
otherwise.
2) true
if the distribution objects are not equal, false
otherwise.
Constant.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/numeric/random/discrete_distribution/operator_cmp