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

Return whether the left&hyphen;hand operand is before or equal to the right&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;optional&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class t&lowbar;LHS&lowbar;TYPE,
    class t&lowbar;RHS&lowbar;TYPE&gt;
constexpr
bool
operator&lt;&equals;(
    xref:bsl/optional-072.adoc[bsl::optional&lt;t&lowbar;LHS&lowbar;TYPE&gt;] const& lhs,
    xref:bsl/optional-072.adoc[bsl::optional&lt;t&lowbar;RHS&lowbar;TYPE&gt;] const& rhs);
----

== Description

Return `true` if the specified `lhs` `optional` object is ordered before the specified `rhs` `optional` object or if `lhs` and `rhs` have the same value, and `false` otherwise&period; (See `operator&lt;` and `operator&equals;&equals;`&period;) This function can be called in constant expressions only if neither `t&lowbar;LHS&lowbar;TYPE` nor `t&lowbar;RHS&lowbar;TYPE` is allocator&hyphen;aware&period;

== Return Value

`true` if `lhs` is ordered before or equal to `rhs`, and `false` otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand operand
| *rhs*
| right&hyphen;hand operand
|===


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