[#beman-optional-operator_3way-05] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::operator<=> :relfileprefix: ../../ :mrdocs: Three‐way comparison of an optional against `nullopt`. == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> constexpr std::strong_ordering operator<=>( xref:beman/optional/optional-03.adoc[optional<T>] const& lhs, xref:beman/optional/nullopt_t.adoc[nullopt_t] rhs) noexcept; ---- == Return Value `equivalent` if `lhs` is disengaged, otherwise `greater`. == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | The optional to compare. | *rhs* | The `nullopt` operand. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#