[#bsl-operator_3way-0d1] = xref:bsl.adoc[bsl]::operator<=> :relfileprefix: ../ :mrdocs: Perform a three‐way comparison of the operands. == Synopsis Declared in `<bslstl_optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_TYPE> constexpr std::strong_ordering operator<=>( xref:bsl/optional-072.adoc[bsl::optional<t_TYPE>] const& value, xref:bsl/nullopt_t.adoc[bsl::nullopt_t] nullopt) noexcept; ---- == Description Perform a three‐way comparison of the specified `value` and `nullopt`; return the result of that comparison. This function can be called in constant expressions only if `t_TYPE` is not allocator‐aware. == Return Value result of the three‐way comparison == Parameters [cols="1,4"] |=== | Name| Description | *value* | value compared with or used to initialize the optional | *nullopt* | disengaged‐optional tag; value is unused |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#