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.

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.

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.

Compares two distributions for equality.

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.

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 spans for element‐wise equality.

bool
operator==(
    AnySpan a,
    AnySpan b);

Compares two const spans for element‐wise equality.

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.

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

  • true if the parameter sets are equal.

  • true if the distributions have equal parameter sets.

  • true if the spans have equal elements.

  • true if a and b point to the same position.

  • true if the iterators are equal.

  • true if the maps are equal.

  • true if the sets are equal.

  • true if the arrays have equal size and equal elements.

  • true if the operands have equal elements.

  • true if lhs equals rhs.

  • true if a and b refer to the same zone.

  • true if f is empty.

  • true if lhs equals rhs; false otherwise.

  • true if the vectors are equal, false otherwise.

  • true if both values are equal.

  • true if the contents are equal.

  • true if the Cords hold equal contents.

  • true if a is empty.

  • true if b is empty.

  • true if both are empty or both hold equal values.

  • true if b holds a value equal to a.

  • true if a holds a value equal to b.

  • true if the two statuses are equal.

  • true if both hold equal values or equal statuses.

  • true if a and b identify the same type, false otherwise.

  • true if lhs and rhs have 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 AnyInvocable to check.

unused

Unused parameter.

x

The left‐hand string data.

y

The right‐hand Cord.

Created with MrDocs