Ares
|
Specialized comparer for all objects derived from ObjectClass. More...
#include <src/Utilities/Helpers.Alex.h>
Public Member Functions | |
bool | operator() (const ObjectClass *lhs, const ObjectClass *rhs) const |
Specialized comparer for all objects derived from ObjectClass.
This specialization compares the unique ID each ObjectClass has. It ensures the objects are sorted the same way on every computer.
bool Helpers::Alex::StrictWeakComparer< T, typename std::enable_if< std::is_base_of< ObjectClass, typename std::remove_pointer< typename T >::type >::value >::type >::operator() | ( | const ObjectClass * | lhs, |
const ObjectClass * | rhs | ||
) | const [inline] |
{
return lhs->UniqueID < rhs->UniqueID;
}