[#absl-operator_eq-03e9] = xref:absl.adoc[absl]::operator== :relfileprefix: ../ :mrdocs: Equality operators == Synopses Declared in `<absl/status/status.h>` Compares two parameter sets for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-030.adoc[operator==]( xref:absl/exponential_distribution/param_type.adoc[param_type] const& a, xref:absl/exponential_distribution/param_type.adoc[param_type] const& b); ---- [.small]#xref:absl/operator_eq-030.adoc[_» more..._]# Compares two parameter sets for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0bb.adoc[operator==]( xref:absl/uniform_real_distribution/param_type.adoc[param_type] const& a, xref:absl/uniform_real_distribution/param_type.adoc[param_type] const& b); ---- [.small]#xref:absl/operator_eq-0bb.adoc[_» more..._]# Compares two distributions for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0ad.adoc[operator==]( xref:absl/zipf_distribution.adoc[zipf_distribution] const& a, xref:absl/zipf_distribution.adoc[zipf_distribution] const& b); ---- [.small]#xref:absl/operator_eq-0ad.adoc[_» more..._]# Compares two parameter sets for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-041.adoc[operator==]( xref:absl/zipf_distribution/param_type.adoc[param_type] const& a, xref:absl/zipf_distribution/param_type.adoc[param_type] const& b); ---- [.small]#xref:absl/operator_eq-041.adoc[_» more..._]# Compares two distributions for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-055.adoc[operator==]( xref:absl/uniform_int_distribution.adoc[uniform_int_distribution] const& a, xref:absl/uniform_int_distribution.adoc[uniform_int_distribution] const& b); ---- [.small]#xref:absl/operator_eq-055.adoc[_» more..._]# Compares two parameter sets for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-06c.adoc[operator==]( xref:absl/uniform_int_distribution/param_type.adoc[param_type] const& a, xref:absl/uniform_int_distribution/param_type.adoc[param_type] const& b); ---- [.small]#xref:absl/operator_eq-06c.adoc[_» more..._]# Compares two distributions for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-021.adoc[operator==]( xref:absl/poisson_distribution.adoc[poisson_distribution] const& a, xref:absl/poisson_distribution.adoc[poisson_distribution] const& b); ---- [.small]#xref:absl/operator_eq-021.adoc[_» more..._]# Compares two parameter sets for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0d8.adoc[operator==]( xref:absl/poisson_distribution/param_type.adoc[param_type] const& a, xref:absl/poisson_distribution/param_type.adoc[param_type] const& b); ---- [.small]#xref:absl/operator_eq-0d8.adoc[_» more..._]# Compares two distributions for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-038.adoc[operator==]( xref:absl/bernoulli_distribution.adoc[bernoulli_distribution] const& d1, xref:absl/bernoulli_distribution.adoc[bernoulli_distribution] const& d2); ---- [.small]#xref:absl/operator_eq-038.adoc[_» more..._]# Compares two parameter sets for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0530.adoc[operator==]( xref:absl/bernoulli_distribution/param_type.adoc[param_type] const& p1, xref:absl/bernoulli_distribution/param_type.adoc[param_type] const& p2); ---- [.small]#xref:absl/operator_eq-0530.adoc[_» more..._]# Compares two distributions for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0af.adoc[operator==]( xref:absl/beta_distribution.adoc[beta_distribution] const& a, xref:absl/beta_distribution.adoc[beta_distribution] const& b); ---- [.small]#xref:absl/operator_eq-0af.adoc[_» more..._]# Compares two parameter sets for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-037.adoc[operator==]( xref:absl/beta_distribution/param_type.adoc[param_type] const& a, xref:absl/beta_distribution/param_type.adoc[param_type] const& b); ---- [.small]#xref:absl/operator_eq-037.adoc[_» more..._]# Compares two distributions for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-08d6.adoc[operator==]( xref:absl/exponential_distribution.adoc[exponential_distribution] const& a, xref:absl/exponential_distribution.adoc[exponential_distribution] const& b); ---- [.small]#xref:absl/operator_eq-08d6.adoc[_» more..._]# Compares two distributions for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-086.adoc[operator==]( xref:absl/uniform_real_distribution.adoc[uniform_real_distribution] const& a, xref:absl/uniform_real_distribution.adoc[uniform_real_distribution] const& b); ---- [.small]#xref:absl/operator_eq-086.adoc[_» more..._]# Compares two distributions for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0e5f.adoc[operator==]( xref:absl/gaussian_distribution.adoc[gaussian_distribution] const& a, xref:absl/gaussian_distribution.adoc[gaussian_distribution] const& b); ---- [.small]#xref:absl/operator_eq-0e5f.adoc[_» more..._]# Compares two parameter sets for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-00c.adoc[operator==]( xref:absl/gaussian_distribution/param_type.adoc[param_type] const& a, xref:absl/gaussian_distribution/param_type.adoc[param_type] const& b); ---- [.small]#xref:absl/operator_eq-00c.adoc[_» more..._]# Compares two distributions for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-09.adoc[operator==]( xref:absl/log_uniform_int_distribution.adoc[log_uniform_int_distribution] const& a, xref:absl/log_uniform_int_distribution.adoc[log_uniform_int_distribution] const& b); ---- [.small]#xref:absl/operator_eq-09.adoc[_» more..._]# Compares two parameter sets for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-03e8.adoc[operator==]( xref:absl/log_uniform_int_distribution/param_type.adoc[param_type] const& a, xref:absl/log_uniform_int_distribution/param_type.adoc[param_type] const& b); ---- [.small]#xref:absl/operator_eq-03e8.adoc[_» more..._]# Compares two distributions for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-08c.adoc[operator==]( xref:absl/discrete_distribution.adoc[discrete_distribution] const& a, xref:absl/discrete_distribution.adoc[discrete_distribution] const& b); ---- [.small]#xref:absl/operator_eq-08c.adoc[_» more..._]# Compares two parameter sets for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0f6.adoc[operator==]( xref:absl/discrete_distribution/param_type.adoc[param_type] const& a, xref:absl/discrete_distribution/param_type.adoc[param_type] const& b); ---- [.small]#xref:absl/operator_eq-0f6.adoc[_» more..._]# Compares two spans for element‐wise equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0b9.adoc[operator==]( xref:absl/AnySpan.adoc[AnySpan] a, xref:absl/AnySpan.adoc[AnySpan] b); ---- [.small]#xref:absl/operator_eq-0b9.adoc[_» more..._]# Compares two const spans for element‐wise equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-029.adoc[operator==]( xref:absl/AnySpan.adoc[AnySpan<T const>] a, xref:absl/AnySpan.adoc[AnySpan<T const>] b); ---- [.small]#xref:absl/operator_eq-029.adoc[_» more..._]# Tests whether two iterators refer to the same position. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0f3.adoc[operator==]( Iter const& a, Iter const& b); ---- [.small]#xref:absl/operator_eq-0f3.adoc[_» more..._]# Returns true if `a` and `b` refer to the same element. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-053a.adoc[operator==]( xref:absl/chunked_queue.adoc[iterator_common] const& a, xref:absl/chunked_queue.adoc[iterator_common] const& b); ---- [.small]#xref:absl/operator_eq-053a.adoc[_» more..._]# Returns whether two maps contain the same key/value pairs. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-040.adoc[operator==]( xref:absl/linked_hash_map.adoc[linked_hash_map] const& a, xref:absl/linked_hash_map.adoc[linked_hash_map] const& b); ---- [.small]#xref:absl/operator_eq-040.adoc[_» more..._]# Returns whether two sets contain the same elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-08e.adoc[operator==]( xref:absl/linked_hash_set.adoc[linked_hash_set] const& a, xref:absl/linked_hash_set.adoc[linked_hash_set] const& b); ---- [.small]#xref:absl/operator_eq-08e.adoc[_» more..._]# Returns whether two fixed arrays are elementwise equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0c2.adoc[operator==]( xref:absl/FixedArray.adoc[FixedArray] const& lhs, xref:absl/FixedArray.adoc[FixedArray] const& rhs); ---- [.small]#xref:absl/operator_eq-0c2.adoc[_» more..._]# Compares two spans for element‐wise equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> constexpr bool xref:absl/operator_eq-02b.adoc[operator==]( xref:absl/Span.adoc[Span<T const>] a, xref:absl/Span.adoc[Span<T>] b); ---- [.small]#xref:absl/operator_eq-02b.adoc[_» more..._]# Compares two spans for element‐wise equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> constexpr bool xref:absl/operator_eq-0d6.adoc[operator==]( xref:absl/Span.adoc[Span<T>] a, xref:absl/Span.adoc[Span<T const>] b); ---- [.small]#xref:absl/operator_eq-0d6.adoc[_» more..._]# Compares a container to a span for element‐wise equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U, typename = span_internal::EnableIfConvertibleTo<U, absl::Span<T const>>> constexpr bool xref:absl/operator_eq-0ff.adoc[operator==]( U const& a, xref:absl/Span.adoc[Span<T>] b); ---- [.small]#xref:absl/operator_eq-0ff.adoc[_» more..._]# Compares a span to a container for element‐wise equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U, typename = span_internal::EnableIfConvertibleTo<U, absl::Span<T const>>> constexpr bool xref:absl/operator_eq-0c1.adoc[operator==]( xref:absl/Span.adoc[Span<T>] a, U const& b); ---- [.small]#xref:absl/operator_eq-0c1.adoc[_» more..._]# Returns whether two times are equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:absl/operator_eq-08d3.adoc[operator==]( xref:absl/Time.adoc[Time] lhs, xref:absl/Time.adoc[Time] rhs); ---- [.small]#xref:absl/operator_eq-08d3.adoc[_» more..._]# Returns whether two time zones are equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0dc.adoc[operator==]( xref:absl/TimeZone.adoc[TimeZone] a, xref:absl/TimeZone.adoc[TimeZone] b); ---- [.small]#xref:absl/operator_eq-0dc.adoc[_» more..._]# Returns whether two durations are equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:absl/operator_eq-023.adoc[operator==]( xref:absl/Duration.adoc[Duration] lhs, xref:absl/Duration.adoc[Duration] rhs); ---- [.small]#xref:absl/operator_eq-023.adoc[_» more..._]# Returns `true` if `f` is empty. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0ec.adoc[operator==]( std::nullptr_t unused, xref:absl/AnyInvocable.adoc[AnyInvocable] const& f) noexcept; ---- [.small]#xref:absl/operator_eq-0ec.adoc[_» more..._]# Returns `true` if `f` is empty. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0e9.adoc[operator==]( xref:absl/AnyInvocable.adoc[AnyInvocable] const& f, std::nullptr_t unused) noexcept; ---- [.small]#xref:absl/operator_eq-0e9.adoc[_» more..._]# Determines whether `lhs` and `rhs` are equal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:absl/operator_eq-0db.adoc[operator==]( xref:absl/uint128.adoc[uint128] lhs, xref:absl/uint128.adoc[uint128] rhs); ---- [.small]#xref:absl/operator_eq-0db.adoc[_» more..._]# Tests for value‐equality of two inlined vectors. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, size_t N, typename A> bool xref:absl/operator_eq-0df.adoc[operator==]( xref:absl/InlinedVector.adoc[absl::InlinedVector<T, N, A>] const& a, xref:absl/InlinedVector.adoc[absl::InlinedVector<T, N, A>] const& b); ---- [.small]#xref:absl/operator_eq-0df.adoc[_» more..._]# Compare two CRC32C values for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0e53.adoc[operator==]( xref:absl/crc32c_t.adoc[crc32c_t] lhs, xref:absl/crc32c_t.adoc[crc32c_t] rhs); ---- [.small]#xref:absl/operator_eq-0e53.adoc[_» more..._]# Compares two spans for element‐wise equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> constexpr bool xref:absl/operator_eq-084.adoc[operator==]( xref:absl/Span.adoc[Span<T>] a, xref:absl/Span.adoc[Span<T>] b); ---- [.small]#xref:absl/operator_eq-084.adoc[_» more..._]# Compares a Cord with string data for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-073.adoc[operator==]( xref:absl/Cord.adoc[Cord] const& lhs, std::string_view rhs); ---- [.small]#xref:absl/operator_eq-073.adoc[_» more..._]# Compares two Cords for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0f7.adoc[operator==]( xref:absl/Cord.adoc[Cord] const& lhs, xref:absl/Cord.adoc[Cord] const& rhs); ---- [.small]#xref:absl/operator_eq-0f7.adoc[_» more..._]# Compares string data with a Cord for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-076.adoc[operator==]( std::string_view x, xref:absl/Cord.adoc[Cord] const& y); ---- [.small]#xref:absl/operator_eq-076.adoc[_» more..._]# Tests whether an `optional_ref` is empty. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> constexpr bool xref:absl/operator_eq-06f.adoc[operator==]( xref:absl/optional_ref-0c.adoc[optional_ref<T>] a, std::nullopt_t b); ---- [.small]#xref:absl/operator_eq-06f.adoc[_» more..._]# Tests whether an `optional_ref` is empty. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> constexpr bool xref:absl/operator_eq-0ab.adoc[operator==]( std::nullopt_t a, xref:absl/optional_ref-0c.adoc[optional_ref<T>] b); ---- [.small]#xref:absl/operator_eq-0ab.adoc[_» more..._]# Compares the referenced values of two `optional_ref`s. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U> constexpr bool xref:absl/operator_eq-0fb.adoc[operator==]( xref:absl/optional_ref-0c.adoc[optional_ref<T>] a, xref:absl/optional_ref-0c.adoc[optional_ref<U>] b); ---- [.small]#xref:absl/operator_eq-0fb.adoc[_» more..._]# Compares a value to the referenced value of an `optional_ref`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U, typename = /* implementation-defined */> constexpr bool xref:absl/operator_eq-057.adoc[operator==]( T const& a, xref:absl/optional_ref-0c.adoc[optional_ref<U>] b); ---- [.small]#xref:absl/operator_eq-057.adoc[_» more..._]# Compares the referenced value of an `optional_ref` to a value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U, typename = /* implementation-defined */> constexpr bool xref:absl/operator_eq-009.adoc[operator==]( xref:absl/optional_ref-0c.adoc[optional_ref<T>] a, U const& b); ---- [.small]#xref:absl/operator_eq-009.adoc[_» more..._]# Compares two statuses for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0b3.adoc[operator==]( xref:absl/Status.adoc[Status] const& lhs, xref:absl/Status.adoc[Status] const& rhs); ---- [.small]#xref:absl/operator_eq-0b3.adoc[_» more..._]# Checks the equality of two `absl::StatusOr<T>` objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> requires internal_statusor::IsEqualityComparable<T>::value bool xref:absl/operator_eq-036.adoc[operator==]( xref:absl/StatusOr.adoc[StatusOr<T>] const& lhs, xref:absl/StatusOr.adoc[StatusOr<T>] const& rhs); ---- [.small]#xref:absl/operator_eq-036.adoc[_» more..._]# Compares two `FastTypeIdType` values for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool xref:absl/operator_eq-08f.adoc[operator==]( xref:absl/FastTypeIdType.adoc[FastTypeIdType] a, xref:absl/FastTypeIdType.adoc[FastTypeIdType] b); ---- [.small]#xref:absl/operator_eq-08f.adoc[_» more..._]# Compares two `UnrecognizedFlag` instances for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/operator_eq-0e4.adoc[operator==]( xref:absl/UnrecognizedFlag.adoc[UnrecognizedFlag] const& lhs, xref:absl/UnrecognizedFlag.adoc[UnrecognizedFlag] const& rhs); ---- [.small]#xref:absl/operator_eq-0e4.adoc[_» more..._]# == 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 [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#