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

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