Add more == and != convenient methods.

This commit is contained in:
czeidler
2012-10-05 13:10:32 +13:00
parent df840270bd
commit b9b8b20f3f
+10
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;
};