Add dereference operator for BorrowedPtr.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d547046752
commit
8eba3b28ff
|
@ -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; }
|
||||||
|
|
Loading…
Reference in New Issue