absl::operator==

Compares a span to a container for element-wise equality.

Synopsis

Declared in <absl/types/span.h>

template<
    typename T,
    typename U,
    typename = span_internal::EnableIfConvertibleTo<U, absl::Span<T const>>>
constexpr
bool
operator==(
    Span<T> a,
    U const& b);

Return Value

true if the operands have equal elements.

Parameters

NameDescription
aThe left operand.
bThe right operand.