29.7. Comparison Operators
The comparison operators can be implemented in exactly the same way as the arithmetic operators, with nonmember binary operators implemented in terms of member functions:
bool operator ==( UInteger64 const &lhs
, UInteger64 const &rhs)
{
return lhs.IsEqual(rhs);
}
bool operator <( UInteger64 const &lhs
, UInteger64 const &rhs)
{
return lhs.Compare(rhs) < 0;
}
 |