Add more == and != convenient methods.
This commit is contained in:
parent
42bc6c2e08
commit
6bfd46f03c
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user