Function Subspace :: sus :: result :: operator<=>

auto operator<=>(const Result<T, E>& l, const Result<T, E>& r) -> std::strong_ordering
requires
sus::cmp::__private::VoidOrOrd<T>
sus::cmp::StrongOrd<E>
auto operator<=>(const Result<T, E>& l, const Result<T, E>& r) -> std::weak_ordering
requires
!VoidOrOrd<T> || !::sus::cmp::StrongOrd<E>
sus::cmp::__private::VoidOrWeakOrd<T>
sus::cmp::Ord<E>
auto operator<=>(const Result<T, E>& l, const Result<T, E>& r) -> std::partial_ordering
requires
!VoidOrWeakOrd<T> || !::sus::cmp::Ord<E>
sus::cmp::__private::VoidOrPartialOrd<T>
sus::cmp::PartialOrd<E>

Compares two Results for their ordering if the types inside can be compared.

Satisfies the StrongOrd, Ord, or PartialOrd concept, depending on whether the internal types do. The Result will satisfy the strongest possible ordering.

Implementation Note

The non-template overloads allow ok/err marker types to convert to Option for comparison.