[#beman-optional-operator_le-0c]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::operator&lt;&equals;
:relfileprefix: ../../
:mrdocs:

Less&hyphen;than&hyphen;or&hyphen;equal operator

== Synopsis

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

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

== Return Value

`true` if the left object is less than or equal to the right object, `false` otherwise

== Parameters

[cols=2]
|===
| Name
| Description
| *lhs*
| The left operand
| *rhs*
| The right operand
|===


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