[#beman-optional-operator_3way-02]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::operator&lt;&equals;&gt;
:relfileprefix: ../../
:mrdocs:

Three&hyphen;way comparison operator

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class T&gt;
constexpr
std::strong&lowbar;ordering
operator&lt;&equals;&gt;(
    xref:beman/optional/optional-03.adoc[optional&lt;T&gt;] const& x,
    xref:beman/optional/nullopt_t.adoc[nullopt&lowbar;t] rhs) noexcept;
----

== Return Value

The relative order of the objects

== Parameters

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


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