By-adress comparison operators for ManagedType.
This commit is contained in:
parent
aabd954d67
commit
8bf318e2b4
1 changed files with 8 additions and 0 deletions
|
@ -87,6 +87,14 @@ public:
|
|||
T* get() {
|
||||
return object;
|
||||
}
|
||||
|
||||
bool operator!=(const ManagedType<T>& x) {
|
||||
return !(this == x);
|
||||
}
|
||||
|
||||
bool operator==(const ManagedType<T>& x) {
|
||||
return this->object == x.object;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue