Compares a container and a span lexicographically.

Synopsis

Declared in <absl/types/span.h>

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

Return Value

true if a is not lexicographically greater than b.

Parameters

Name

Description

a

The left operand.

b

The right operand.

Created with MrDocs