diff options
author | Chris Robinson <[email protected]> | 2019-08-01 20:15:47 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-01 20:15:47 -0700 |
commit | 61bb079036aa90a819f58d1c26b4f3c14588b218 (patch) | |
tree | ba197d6806c223082ddf58af26e2becad0520647 /common | |
parent | 33bcced82a1e97811d4212195b6e6ca9cf2242b1 (diff) |
Add operator* to intrusive_ptr
Diffstat (limited to 'common')
-rw-r--r-- | common/intrusive_ptr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/intrusive_ptr.h b/common/intrusive_ptr.h index 85f019fd..831b8302 100644 --- a/common/intrusive_ptr.h +++ b/common/intrusive_ptr.h @@ -70,6 +70,7 @@ public: operator bool() const noexcept { return mPtr != nullptr; } + T& operator*() const noexcept { return *mPtr; } T* operator->() const noexcept { return mPtr; } T* get() const noexcept { return mPtr; } |