absl::operator==

Compares two distributions for equality.

Synopsis

Declared in <absl/random/bernoulli_distribution.h>

bool
operator==(
    bernoulli_distribution const& d1,
    bernoulli_distribution const& d2);

NOTE

This function is a hidden friend of bernoulli_distribution, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

true if the distributions have equal parameter sets.

Parameters

NameDescription
d1The first distribution to compare.
d2The second distribution to compare.