##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# operator==,!=(std::bernoulli_distribution)

From cppreference.com
< cpp‎ | numeric‎ | random‎ | bernoulli distribution

[edit template]

bool operator==( const bernoulli_distribution& lhs, const bernoulli_distribution& rhs ); | (1) |
bool operator!=( const bernoulli_distribution& lhs, const bernoulli_distribution& 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.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/random/bernoulli_distribution/operator_cmp&oldid=79640"