[#bsl-operator_3way-0d1]
= xref:bsl.adoc[bsl]::operator&lt;&equals;&gt;
:relfileprefix: ../
:mrdocs:

Perform a three&hyphen;way comparison of the specified `value` and `nullopt`&semi; return the result of that comparison&period; This function can be called in constant expressions only if `t&lowbar;TYPE` is not allocator&hyphen;aware&period;

== Synopsis

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

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


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