[#beman-optional-operator_lt-07]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::operator&lt;
:relfileprefix: ../../
:mrdocs:

Less&hyphen;than operators

== Synopses

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

Less&hyphen;than operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename U&gt;
constexpr
bool
xref:beman/optional/operator_lt-0d.adoc[operator&lt;](
    xref:beman/optional/optional-03.adoc[optional&lt;T&gt;] const& lhs,
    xref:beman/optional/optional-03.adoc[optional&lt;U&gt;] const& rhs)
requires detail&colon;&colon;optional&lowbar;lt&lowbar;rel&lt;T, U&gt;;
----

[.small]#xref:beman/optional/operator_lt-0d.adoc[_» more&period;&period;&period;_]#

Less&hyphen;than operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename U&gt;
constexpr
bool
xref:beman/optional/operator_lt-08.adoc[operator&lt;](
    xref:beman/optional/optional-03.adoc[optional&lt;T&gt;] const& lhs,
    U const& rhs)
requires (!detail&colon;&colon;is&lowbar;optional&lt;U&gt;) &amp;&amp; detail&colon;&colon;optional&lowbar;lt&lowbar;rel&lt;T, U&gt;;
----

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

Less&hyphen;than operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename U&gt;
constexpr
bool
xref:beman/optional/operator_lt-04.adoc[operator&lt;](
    T const& lhs,
    xref:beman/optional/optional-03.adoc[optional&lt;U&gt;] const& rhs)
requires (!detail&colon;&colon;is&lowbar;optional&lt;T&gt;) &amp;&amp; detail&colon;&colon;optional&lowbar;lt&lowbar;rel&lt;T, U&gt;;
----

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


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