This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -47,7 +47,7 @@ namespace ArbUt {
|
|||||||
inline T* GetValue() const noexcept { return _raw; }
|
inline T* GetValue() const noexcept { return _raw; }
|
||||||
|
|
||||||
/// @brief Get the raw underlying pointer.
|
/// @brief Get the raw underlying pointer.
|
||||||
inline T* TakeOwnership() const noexcept {
|
inline T* TakeOwnership() noexcept {
|
||||||
auto raw = _raw;
|
auto raw = _raw;
|
||||||
_raw = nullptr;
|
_raw = nullptr;
|
||||||
return raw;
|
return raw;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ namespace ArbUt {
|
|||||||
inline T* operator->() const noexcept { return _raw; }
|
inline T* operator->() const noexcept { return _raw; }
|
||||||
|
|
||||||
/// @brief Get the raw underlying pointer.
|
/// @brief Get the raw underlying pointer.
|
||||||
inline T* TakeOwnership() const noexcept {
|
inline T* TakeOwnership() noexcept {
|
||||||
auto raw = _raw;
|
auto raw = _raw;
|
||||||
_raw = nullptr;
|
_raw = nullptr;
|
||||||
return raw;
|
return raw;
|
||||||
|
|||||||
Reference in new issue
Block a user