mrdocs::operator<=>

Three‐way comparison of two polymorphic objects.

Synopsis

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

Name

Description

lhs

The left operand

rhs

The right operand

Created with MrDocs