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);
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);
Return Value
true if the two Polymorphic objects are equal, otherwise false.
Template Parameters
Name |
Description |
Base |
The type of the Polymorphic. |
Parameters
Name |
Description |
lhs |
The first Polymorphic to compare. |
rhs |
The second Polymorphic to compare. |
Created with MrDocs