Add more == and != convenient methods.
This commit is contained in:
@@ -143,11 +143,21 @@ public:
|
|||||||
return (fObject == other.fObject);
|
return (fObject == other.fObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator==(const Type* other) const
|
||||||
|
{
|
||||||
|
return (fObject == other);
|
||||||
|
}
|
||||||
|
|
||||||
bool operator!=(const BReference<Type>& other) const
|
bool operator!=(const BReference<Type>& other) const
|
||||||
{
|
{
|
||||||
return (fObject != other.fObject);
|
return (fObject != other.fObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator!=(const Type* other) const
|
||||||
|
{
|
||||||
|
return (fObject != other);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Type* fObject;
|
Type* fObject;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user