Comparison Functions
Finally, most classes have comparison and equality member functions:
 
int compareTo(ClassName*) const;
bool equalTo(ClassName*) const;
and their logical operator counterparts:
 
bool operator==(const ClassName&) const;
bool operator!=(const ClassName&) const;
bool operator<=(const ClassName&) const;
bool operator>=(const ClassName&) const;
bool operator<(const ClassName&) const;
bool operator>(const ClassName&) const;