diff options
author | rtk0c <[email protected]> | 2022-04-08 22:30:12 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-04-08 22:30:12 -0700 |
commit | e7ef3f208c109357538b1f68af10bcd78db95c95 (patch) | |
tree | 066d614ae0f079e53602d7c0fd972998c546c8c1 /source/RcPtr.hpp | |
parent | f163e8f37123e651ea80b690793845b31ddb8639 (diff) |
Changeset: 3 More work
Diffstat (limited to 'source/RcPtr.hpp')
-rw-r--r-- | source/RcPtr.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/RcPtr.hpp b/source/RcPtr.hpp index 90097e1..5958db4 100644 --- a/source/RcPtr.hpp +++ b/source/RcPtr.hpp @@ -94,6 +94,11 @@ public: return mPtr == ptr; } + template <class TThat> + bool operator==(const RcPtr<TThat>& ptr) const { + return mPtr == ptr.Get(); + } + T* Get() const { return mPtr; } |