By-adress comparison operators for ManagedType.

This commit is contained in:
Jonathan Protzenko 2015-08-24 16:12:18 -07:00
parent aabd954d67
commit 8bf318e2b4
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}
};
/**