mrdocs::CompareDerived

Compares two polymorphic objects that have visit functions

Synopses

Declared in <mrdocs/ADT/Polymorphic.hpp>

Compares two polymorphic objects that have visit functions

template<class Base>
requires (!detail::IsPolymorphic<Base>) && detail::CanVisitCompare<Base>
auto
CompareDerived(
    Base const& lhs,
    Base const& rhs);
» more...

Compares two polymorphic objects that have visit functions

template<class Base>
requires detail::CanVisitCompare<Base>
auto
CompareDerived(
    Polymorphic<Base> const& lhs,
    Polymorphic<Base> const& rhs);
» more...

Return Value

true if the two Polymorphic objects are equal, otherwise false.

Template Parameters

NameDescription
BaseThe type of the Polymorphic.

Parameters

NameDescription
lhsThe first Polymorphic to compare.
rhsThe second Polymorphic to compare.