Equality operators
Synopses
Declared in <absl/status/status.h>
Compares two parameter sets for equality.
bool
operator==(
param_type const& a,
param_type const& b);
Compares two parameter sets for equality.
bool
operator==(
param_type const& a,
param_type const& b);
Compares two distributions for equality.
bool
operator==(
zipf_distribution const& a,
zipf_distribution const& b);
Compares two parameter sets for equality.
bool
operator==(
param_type const& a,
param_type const& b);
Compares two distributions for equality.
bool
operator==(
uniform_int_distribution const& a,
uniform_int_distribution const& b);
Compares two parameter sets for equality.
bool
operator==(
param_type const& a,
param_type const& b);
Compares two distributions for equality.
bool
operator==(
poisson_distribution const& a,
poisson_distribution const& b);
Compares two parameter sets for equality.
bool
operator==(
param_type const& a,
param_type const& b);
Compares two distributions for equality.
bool
operator==(
bernoulli_distribution const& d1,
bernoulli_distribution const& d2);
Compares two parameter sets for equality.
bool
operator==(
param_type const& p1,
param_type const& p2);
Compares two distributions for equality.
bool
operator==(
beta_distribution const& a,
beta_distribution const& b);
Compares two parameter sets for equality.
bool
operator==(
param_type const& a,
param_type const& b);
Compares two distributions for equality.
bool
operator==(
exponential_distribution const& a,
exponential_distribution const& b);
Compares two distributions for equality.
bool
operator==(
uniform_real_distribution const& a,
uniform_real_distribution const& b);
Compares two distributions for equality.
bool
operator==(
gaussian_distribution const& a,
gaussian_distribution const& b);
Compares two parameter sets for equality.
bool
operator==(
param_type const& a,
param_type const& b);
Compares two distributions for equality.
Compares two parameter sets for equality.
bool
operator==(
param_type const& a,
param_type const& b);
Compares two distributions for equality.
bool
operator==(
discrete_distribution const& a,
discrete_distribution const& b);
Compares two parameter sets for equality.
bool
operator==(
param_type const& a,
param_type const& b);
Compares two spans for element‐wise equality.
bool
operator==(
AnySpan a,
AnySpan b);
Compares two const spans for element‐wise equality.
bool
operator==(
AnySpan<T const> a,
AnySpan<T const> b);
Tests whether two iterators refer to the same position.
bool
operator==(
Iter const& a,
Iter const& b);
Returns true if a and b refer to the same element.
bool
operator==(
iterator_common const& a,
iterator_common const& b);
Returns whether two maps contain the same key/value pairs.
bool
operator==(
linked_hash_map const& a,
linked_hash_map const& b);
Returns whether two sets contain the same elements.
bool
operator==(
linked_hash_set const& a,
linked_hash_set const& b);
Returns whether two fixed arrays are elementwise equal.
bool
operator==(
FixedArray const& lhs,
FixedArray const& rhs);
Compares two spans for element‐wise equality.
template<typename T>
constexpr
bool
operator==(
Span<T const> a,
Span<T> b);
Compares two spans for element‐wise equality.
template<typename T>
constexpr
bool
operator==(
Span<T> a,
Span<T const> b);
Compares a container to a span for element‐wise equality.
template<
typename T,
typename U,
typename = span_internal::EnableIfConvertibleTo<U, absl::Span<T const>>>
constexpr
bool
operator==(
U const& a,
Span<T> b);
Compares a span to a container for element‐wise equality.
template<
typename T,
typename U,
typename = span_internal::EnableIfConvertibleTo<U, absl::Span<T const>>>
constexpr
bool
operator==(
Span<T> a,
U const& b);
Returns whether two times are equal.
constexpr
bool
operator==(
Time lhs,
Time rhs);
Returns whether two time zones are equal.
bool
operator==(
TimeZone a,
TimeZone b);
Returns whether two durations are equal.
constexpr
bool
operator==(
Duration lhs,
Duration rhs);
Returns true if f is empty.
bool
operator==(
std::nullptr_t unused,
AnyInvocable const& f) noexcept;
Returns true if f is empty.
bool
operator==(
AnyInvocable const& f,
std::nullptr_t unused) noexcept;
Determines whether lhs and rhs are equal.
constexpr
bool
operator==(
uint128 lhs,
uint128 rhs);
Tests for value‐equality of two inlined vectors.
template<
typename T,
size_t N,
typename A>
bool
operator==(
absl::InlinedVector<T, N, A> const& a,
absl::InlinedVector<T, N, A> const& b);
Compare two CRC32C values for equality.
bool
operator==(
crc32c_t lhs,
crc32c_t rhs);
Compares two spans for element‐wise equality.
template<typename T>
constexpr
bool
operator==(
Span<T> a,
Span<T> b);
Compares a Cord with string data for equality.
bool
operator==(
Cord const& lhs,
std::string_view rhs);
Compares two Cords for equality.
bool
operator==(
Cord const& lhs,
Cord const& rhs);
Compares string data with a Cord for equality.
bool
operator==(
std::string_view x,
Cord const& y);
Tests whether an optional_ref is empty.
template<typename T>
constexpr
bool
operator==(
optional_ref<T> a,
std::nullopt_t b);
Tests whether an optional_ref is empty.
template<typename T>
constexpr
bool
operator==(
std::nullopt_t a,
optional_ref<T> b);
Compares the referenced values of two `optional_ref`s.
template<
typename T,
typename U>
constexpr
bool
operator==(
optional_ref<T> a,
optional_ref<U> b);
Compares a value to the referenced value of an optional_ref.
template<
typename T,
typename U,
typename = /* implementation-defined */>
constexpr
bool
operator==(
T const& a,
optional_ref<U> b);
Compares the referenced value of an optional_ref to a value.
template<
typename T,
typename U,
typename = /* implementation-defined */>
constexpr
bool
operator==(
optional_ref<T> a,
U const& b);
Compares two statuses for equality.
bool
operator==(
Status const& lhs,
Status const& rhs);
Checks the equality of two absl::StatusOr<T> objects.
template<typename T>
requires internal_statusor::IsEqualityComparable<T>::value
bool
operator==(
StatusOr<T> const& lhs,
StatusOr<T> const& rhs);
Compares two FastTypeIdType values for equality.
constexpr
bool
operator==(
FastTypeIdType a,
FastTypeIdType b);
Compares two UnrecognizedFlag instances for equality.
bool
operator==(
UnrecognizedFlag const& lhs,
UnrecognizedFlag const& rhs);
Return Value
-
trueif the parameter sets are equal. -
trueif the distributions have equal parameter sets. -
trueif the spans have equal elements. -
trueifaandbpoint to the same position. -
true if the iterators are equal.
-
trueif the maps are equal. -
trueif the sets are equal. -
trueif the arrays have equal size and equal elements. -
trueif the operands have equal elements. -
trueiflhsequalsrhs. -
trueifaandbrefer to the same zone. -
trueiffis empty. -
trueiflhsequalsrhs;falseotherwise. -
trueif the vectors are equal,falseotherwise. -
trueif both values are equal. -
trueif the contents are equal. -
trueif the Cords hold equal contents. -
trueifais empty. -
trueifbis empty. -
trueif both are empty or both hold equal values. -
trueifbholds a value equal toa. -
trueifaholds a value equal tob. -
trueif the two statuses are equal. -
trueif both hold equal values or equal statuses. -
trueifaandbidentify the same type,falseotherwise. -
trueiflhsandrhshave the same source and flag name.
Parameters
Name |
Description |
a |
The first parameter set to compare. |
b |
The second parameter set to compare. |
d1 |
The first distribution to compare. |
d2 |
The second distribution to compare. |
p1 |
The first parameter set to compare. |
p2 |
The second parameter set to compare. |
lhs |
The left‐hand fixed array. |
rhs |
The right‐hand fixed array. |
f |
The |
unused |
Unused parameter. |
x |
The left‐hand string data. |
y |
The right‐hand Cord. |
Created with MrDocs