[#bsl-operator_3way-09] = xref:bsl.adoc[bsl]::operator<=> :relfileprefix: ../ :mrdocs: If `lhs` and `rhs` are not valueless by exception and hold the same alternative `i`, return `get(lhs) <=> get(rhs)` . If `lhs` and `rhs` are not valueless by exception and hold the aalternatives `i` and `j` respectively, return `i<=>j`. Return `strong_ordering::equal` if both variants are valueless by exception. Return `strong_ordering::less` if `lhs` is valueless by exception. Return `strong_ordering::greater` if `rhs` is valueless by exception. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... t_ALTS> requires (std::three_way_comparable<t_ALTS> && ...) constexpr std::common_comparison_category_t<std::compare_three_way_result_t<t_ALTS>...> operator<=>( xref:bsl/variant.adoc[variant<t_ALTS...>] const& lhs, xref:bsl/variant.adoc[variant<t_ALTS...>] const& rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#