Allow access of raw template type when const.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
86c7aba0ea
commit
f8b4d79e28
|
@ -14,7 +14,7 @@ namespace Arbutils::Memory {
|
||||||
inline constexpr bool IsNull() const noexcept { return _ptr == nullptr; }
|
inline constexpr bool IsNull() const noexcept { return _ptr == nullptr; }
|
||||||
|
|
||||||
T* operator->() noexcept { return _ptr; }
|
T* operator->() noexcept { return _ptr; }
|
||||||
const T* operator->() const noexcept { return _ptr; }
|
T* operator->() const noexcept { return _ptr; }
|
||||||
|
|
||||||
inline bool operator==(const BorrowedPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
|
inline bool operator==(const BorrowedPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
|
||||||
inline bool operator!=(const BorrowedPtr& rhs) const noexcept { return _ptr != rhs._ptr; }
|
inline bool operator!=(const BorrowedPtr& rhs) const noexcept { return _ptr != rhs._ptr; }
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace Arbutils::Memory {
|
||||||
inline constexpr const T* GetUnsafe() const noexcept { return _ptr; }
|
inline constexpr const T* GetUnsafe() const noexcept { return _ptr; }
|
||||||
|
|
||||||
T* operator->() noexcept { return _ptr; }
|
T* operator->() noexcept { return _ptr; }
|
||||||
const T* operator->() const noexcept { return _ptr; }
|
T* operator->() const noexcept { return _ptr; }
|
||||||
|
|
||||||
inline bool operator==(const NonNullBorrowedPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
|
inline bool operator==(const NonNullBorrowedPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
|
||||||
inline bool operator!=(const NonNullBorrowedPtr& rhs) const noexcept { return _ptr != rhs._ptr; }
|
inline bool operator!=(const NonNullBorrowedPtr& rhs) const noexcept { return _ptr != rhs._ptr; }
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace Arbutils::Memory {
|
||||||
inline const BorrowedPtr<const T> BorrowOptional() const { return BorrowedPtr<const T>(_ptr); }
|
inline const BorrowedPtr<const T> BorrowOptional() const { return BorrowedPtr<const T>(_ptr); }
|
||||||
|
|
||||||
T* operator->() noexcept { return _ptr; }
|
T* operator->() noexcept { return _ptr; }
|
||||||
const T* operator->() const noexcept { return _ptr; }
|
T* operator->() const noexcept { return _ptr; }
|
||||||
|
|
||||||
inline bool operator==(const NonNullOwnPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
|
inline bool operator==(const NonNullOwnPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
|
||||||
inline bool operator!=(const NonNullOwnPtr& rhs) const noexcept { return _ptr != rhs._ptr; }
|
inline bool operator!=(const NonNullOwnPtr& rhs) const noexcept { return _ptr != rhs._ptr; }
|
||||||
|
|
|
@ -27,7 +27,7 @@ namespace Arbutils::Memory {
|
||||||
inline const NonNullBorrowedPtr<const T> BorrowNonNull() const { return NonNullBorrowedPtr<const T>(_ptr); }
|
inline const NonNullBorrowedPtr<const T> BorrowNonNull() const { return NonNullBorrowedPtr<const T>(_ptr); }
|
||||||
|
|
||||||
T* operator->() noexcept { return _ptr; }
|
T* operator->() noexcept { return _ptr; }
|
||||||
const T* operator->() const noexcept { return _ptr; }
|
T* operator->() const noexcept { return _ptr; }
|
||||||
|
|
||||||
inline bool operator==(const OwnPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
|
inline bool operator==(const OwnPtr& rhs) const noexcept { return _ptr == rhs._ptr; }
|
||||||
inline bool operator!=(const OwnPtr& rhs) const noexcept { return _ptr != rhs._ptr; }
|
inline bool operator!=(const OwnPtr& rhs) const noexcept { return _ptr != rhs._ptr; }
|
||||||
|
|
Loading…
Reference in New Issue