Add more == and != convenient methods.

This commit is contained in:
czeidler 2012-10-05 12:12:25 +13:00 committed by Alexander von Gluck IV
parent 42bc6c2e08
commit 6bfd46f03c

View File

@ -143,11 +143,21 @@ public:
return (fObject == other.fObject);
}
bool operator==(const Type* other) const
{
return (fObject == other);
}
bool operator!=(const BReference<Type>& other) const
{
return (fObject != other.fObject);
}
bool operator!=(const Type* other) const
{
return (fObject != other);
}
private:
Type* fObject;
};