Compares two spans for element‐wise equality.

Synopsis

Declared in <absl/types/span.h>

template<typename T>
constexpr
bool
operator==(
    Span<T> a,
    Span<T> b);

Return Value

true if the spans have equal elements.

Parameters

Name

Description

a

The left operand.

b

The right operand.

Created with MrDocs