Compares two polymorphic objects that have visit functions
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...
true if the two Polymorphic objects are equal, otherwise false.
| Name | Description |
|---|---|
| Base | The type of the Polymorphic. |
| Name | Description |
|---|---|
| lhs | The first Polymorphic to compare. |
| rhs | The second Polymorphic to compare. |