[#absl-operator_lt-02]
= xref:absl.adoc[absl]::operator&lt;
:relfileprefix: ../
:mrdocs:

Less&hyphen;than operators

== Synopses

Declared in `&lt;absl&sol;time&sol;time&period;h&gt;`

Compares an `absl&colon;&colon;LogSeverityAtLeast` threshold against an `absl&colon;&colon;LogSeverity` value (in either operand order)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
bool
xref:absl/operator_lt-065.adoc[operator&lt;](
    xref:absl/LogSeverity.adoc[absl::LogSeverity] lhs,
    xref:absl/LogSeverityAtLeast.adoc[absl::LogSeverityAtLeast] rhs);
----

[.small]#xref:absl/operator_lt-065.adoc[_» more&period;&period;&period;_]#

Compares an `absl&colon;&colon;LogSeverityAtMost` threshold against an `absl&colon;&colon;LogSeverity` value (in either operand order)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
bool
xref:absl/operator_lt-046.adoc[operator&lt;](
    xref:absl/LogSeverityAtMost.adoc[absl::LogSeverityAtMost] lhs,
    xref:absl/LogSeverity.adoc[absl::LogSeverity] rhs);
----

[.small]#xref:absl/operator_lt-046.adoc[_» more&period;&period;&period;_]#

Compares two spans lexicographically&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
constexpr
bool
xref:absl/operator_lt-04c.adoc[operator&lt;](
    xref:absl/Span.adoc[Span&lt;T&gt;] a,
    xref:absl/Span.adoc[Span&lt;T&gt;] b);
----

[.small]#xref:absl/operator_lt-04c.adoc[_» more&period;&period;&period;_]#

Compares two spans lexicographically&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
constexpr
bool
xref:absl/operator_lt-06d.adoc[operator&lt;](
    xref:absl/Span.adoc[Span&lt;T const&gt;] a,
    xref:absl/Span.adoc[Span&lt;T&gt;] b);
----

[.small]#xref:absl/operator_lt-06d.adoc[_» more&period;&period;&period;_]#

Compares two spans lexicographically&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
constexpr
bool
xref:absl/operator_lt-08.adoc[operator&lt;](
    xref:absl/Span.adoc[Span&lt;T&gt;] a,
    xref:absl/Span.adoc[Span&lt;T const&gt;] b);
----

[.small]#xref:absl/operator_lt-08.adoc[_» more&period;&period;&period;_]#

Compares a container and a span lexicographically&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename U,
    typename = span&lowbar;internal::EnableIfConvertibleTo&lt;U, absl::Span&lt;T const&gt;&gt;&gt;
constexpr
bool
xref:absl/operator_lt-071.adoc[operator&lt;](
    U const& a,
    xref:absl/Span.adoc[Span&lt;T&gt;] b);
----

[.small]#xref:absl/operator_lt-071.adoc[_» more&period;&period;&period;_]#

Compares a span and a container lexicographically&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename U,
    typename = span&lowbar;internal::EnableIfConvertibleTo&lt;U, absl::Span&lt;T const&gt;&gt;&gt;
constexpr
bool
xref:absl/operator_lt-0ed.adoc[operator&lt;](
    xref:absl/Span.adoc[Span&lt;T&gt;] a,
    U const& b);
----

[.small]#xref:absl/operator_lt-0ed.adoc[_» more&period;&period;&period;_]#

Returns whether one time is earlier than another&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
bool
xref:absl/operator_lt-0e7.adoc[operator&lt;](
    xref:absl/Time.adoc[Time] lhs,
    xref:absl/Time.adoc[Time] rhs);
----

[.small]#xref:absl/operator_lt-0e7.adoc[_» more&period;&period;&period;_]#

Returns whether one duration is less than another&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
bool
xref:absl/operator_lt-06f.adoc[operator&lt;](
    xref:absl/Duration.adoc[Duration] lhs,
    xref:absl/Duration.adoc[Duration] rhs);
----

[.small]#xref:absl/operator_lt-06f.adoc[_» more&period;&period;&period;_]#

Determines whether `lhs` is less than `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
bool
xref:absl/operator_lt-0c3.adoc[operator&lt;](
    xref:absl/uint128.adoc[uint128] lhs,
    xref:absl/uint128.adoc[uint128] rhs);
----

[.small]#xref:absl/operator_lt-0c3.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    size&lowbar;t N,
    typename A&gt;
bool
xref:absl/operator_lt-0b.adoc[operator&lt;](
    xref:absl/InlinedVector.adoc[absl::InlinedVector&lt;T, N, A&gt;] const& a,
    xref:absl/InlinedVector.adoc[absl::InlinedVector&lt;T, N, A&gt;] const& b);
----

[.small]#xref:absl/operator_lt-0b.adoc[_» more&period;&period;&period;_]#

Returns whether `lhs` orders lexicographically before `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:absl/operator_lt-0ef.adoc[operator&lt;](
    xref:absl/FixedArray.adoc[FixedArray] const& lhs,
    xref:absl/FixedArray.adoc[FixedArray] const& rhs);
----

[.small]#xref:absl/operator_lt-0ef.adoc[_» more&period;&period;&period;_]#

Orders one Cord before another&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:absl/operator_lt-0ce.adoc[operator&lt;](
    xref:absl/Cord.adoc[Cord] const& x,
    xref:absl/Cord.adoc[Cord] const& y);
----

[.small]#xref:absl/operator_lt-0ce.adoc[_» more&period;&period;&period;_]#

Orders a Cord before string data&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:absl/operator_lt-0f.adoc[operator&lt;](
    xref:absl/Cord.adoc[Cord] const& x,
    std::string&lowbar;view y);
----

[.small]#xref:absl/operator_lt-0f.adoc[_» more&period;&period;&period;_]#

Orders string data before a Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:absl/operator_lt-0758.adoc[operator&lt;](
    std::string&lowbar;view x,
    xref:absl/Cord.adoc[Cord] const& y);
----

[.small]#xref:absl/operator_lt-0758.adoc[_» more&period;&period;&period;_]#

Orders two iterators by position&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:absl/operator_lt-075d.adoc[operator&lt;](
    Iter const& a,
    Iter const& b);
----

[.small]#xref:absl/operator_lt-075d.adoc[_» more&period;&period;&period;_]#

== Return Value

* `true` if the comparison holds, `false` otherwise&period;
* `true` if `a` is lexicographically less than `b`&period;
* `true` if `lhs` is earlier than `rhs`&period;
* `true` if `lhs` is less than `rhs`&period;
* `true` if `lhs` is less than `rhs`&semi; `false` otherwise&period;
* `true` if `a` is less than `b`, `false` otherwise&period;
* `true` if `lhs` is lexicographically less than `rhs`&period;
* `true` if `x` is lexicographically less than `y`&period;
* `true` if `a` precedes `b`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| The left&hyphen;hand operand&period;
| *rhs*
| The right&hyphen;hand operand&period;
| *a*
| The left operand&period;
| *b*
| The right operand&period;
| *x*
| The left&hyphen;hand Cord&period;
| *y*
| The right&hyphen;hand Cord&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
