Add dereference operator for BorrowedPtr.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-06-26 13:13:46 +02:00
parent d547046752
commit 8eba3b28ff
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ namespace ArbUt {
AssertNotNull(_raw); AssertNotNull(_raw);
return _raw; return _raw;
} }
inline T operator*() const noexcept {
AssertNotNull(_raw);
return *_raw;
}
inline T* GetRaw() const noexcept { return _raw; } inline T* GetRaw() const noexcept { return _raw; }
inline bool operator==(const BorrowedPtr& rhs) const noexcept { return _raw == rhs._raw; } inline bool operator==(const BorrowedPtr& rhs) const noexcept { return _raw == rhs._raw; }