[#mrdocs-CompareDerived-0f] = xref:mrdocs.adoc[mrdocs]::CompareDerived :relfileprefix: ../ :mrdocs: Compares two polymorphic objects that have visit functions == Synopses Declared in `<mrdocs/ADT/Polymorphic.hpp>` Compares two polymorphic objects that have visit functions [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Base> requires (!detail::IsPolymorphic<Base>) && detail::CanVisitCompare<Base> auto xref:mrdocs/CompareDerived-0d.adoc[CompareDerived]( Base const& lhs, Base const& rhs); ---- [.small]#xref:mrdocs/CompareDerived-0d.adoc[_» more..._]# Compares two polymorphic objects that have visit functions [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Base> requires detail::CanVisitCompare<Base> auto xref:mrdocs/CompareDerived-08.adoc[CompareDerived]( xref:mrdocs/Polymorphic.adoc[Polymorphic<Base>] const& lhs, xref:mrdocs/Polymorphic.adoc[Polymorphic<Base>] const& rhs); ---- [.small]#xref:mrdocs/CompareDerived-08.adoc[_» more..._]# == Return Value true if the two Polymorphic objects are equal, otherwise false. == Template Parameters [cols="1,4"] |=== | Name| Description | *Base* | The type of the Polymorphic. |=== == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | The first Polymorphic to compare. | *rhs* | The second Polymorphic to compare. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#