Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | numeric‎ | random‎ | binomial distribution
Revision as of 20:44, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
 
template< class ResultType >

bool operator==( const binomial_distribution<ResultType>& lhs,

                 const binomial_distribution<ResultType>& rhs );
(1)
template< class ResultType >

bool operator!=( const binomial_distribution<ResultType>& lhs,

                 const binomial_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.

[edit] Parameters

lhs, rhs - distribution objects to compare

[edit] Return value

1) true if the distribution objects are equal, false otherwise

2) true if the distribution objects are not equal, false otherwise

[edit] Complexity

Constant.