mrdocs::operator<=>

Three-way comparison of two polymorphic objects.

Synopsis

Declared in <mrdocs/ADT/Polymorphic.hpp>

template<class Base>
requires detail::CanVisitCompare<Base>
auto
operator<=>(
    Polymorphic<Base> const& lhs,
    Polymorphic<Base> const& rhs);

Return Value

strong_ordering comparing held objects.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand