absl::operator<

Less-than operators

Synopses

Declared in <absl/time/time.h>

Compares an absl::LogSeverityAtLeast threshold against an absl::LogSeverity value (in either operand order).

constexpr
bool
operator<(
    absl::LogSeverity lhs,
    absl::LogSeverityAtLeast rhs);
» more...

Compares an absl::LogSeverityAtMost threshold against an absl::LogSeverity value (in either operand order).

constexpr
bool
operator<(
    absl::LogSeverityAtMost lhs,
    absl::LogSeverity rhs);
» more...

Compares two spans lexicographically.

template<typename T>
constexpr
bool
operator<(
    Span<T> a,
    Span<T> b);
» more...

Compares two spans lexicographically.

template<typename T>
constexpr
bool
operator<(
    Span<T const> a,
    Span<T> b);
» more...

Compares two spans lexicographically.

template<typename T>
constexpr
bool
operator<(
    Span<T> a,
    Span<T const> b);
» more...

Compares a container and a span lexicographically.

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

Compares a span and a container lexicographically.

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

Returns whether one time is earlier than another.

constexpr
bool
operator<(
    Time lhs,
    Time rhs);
» more...

Returns whether one duration is less than another.

constexpr
bool
operator<(
    Duration lhs,
    Duration rhs);
» more...

Determines whether lhs is less than rhs.

constexpr
bool
operator<(
    uint128 lhs,
    uint128 rhs);
» more...

Tests whether the value of an inlined vector is less than the value of another inlined vector using a lexicographical comparison algorithm.

template<
    typename T,
    size_t N,
    typename A>
bool
operator<(
    absl::InlinedVector<T, N, A> const& a,
    absl::InlinedVector<T, N, A> const& b);
» more...

Returns whether lhs orders lexicographically before rhs.

bool
operator<(
    FixedArray const& lhs,
    FixedArray const& rhs);
» more...

Orders one Cord before another.

bool
operator<(
    Cord const& x,
    Cord const& y);
» more...

Orders a Cord before string data.

bool
operator<(
    Cord const& x,
    std::string_view y);
» more...

Orders string data before a Cord.

bool
operator<(
    std::string_view x,
    Cord const& y);
» more...

Orders two iterators by position.

bool
operator<(
    Iter const& a,
    Iter const& b);
» more...

Return Value

  • true if the comparison holds, false otherwise.
  • true if a is lexicographically less than b.
  • true if lhs is earlier than rhs.
  • true if lhs is less than rhs.
  • true if lhs is less than rhs; false otherwise.
  • true if a is less than b, false otherwise.
  • true if lhs is lexicographically less than rhs.
  • true if x is lexicographically less than y.
  • true if a precedes b.

Parameters

NameDescription
lhsThe left-hand operand.
rhsThe right-hand operand.
aThe left operand.
bThe right operand.
xThe left-hand Cord.
yThe right-hand Cord.