This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -43,7 +43,7 @@ namespace ArbUt {
|
||||
}
|
||||
|
||||
/// @brief Return whether the pointer is null or not.
|
||||
[[nodiscard]] inline bool HasValue() const noexcept { return _raw == nullptr; }
|
||||
[[nodiscard]] inline bool HasValue() const noexcept { return _raw != nullptr; }
|
||||
|
||||
/// @brief Get the raw underlying pointer.
|
||||
inline T* GetValue() const noexcept { return _raw; }
|
||||
|
||||
@@ -33,6 +33,12 @@ namespace ArbUt {
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// @brief Return whether the pointer is null or not.
|
||||
[[nodiscard]] inline bool HasValue() const noexcept { return _raw != nullptr; }
|
||||
|
||||
/// @brief Get the raw underlying pointer.
|
||||
inline T* GetValue() const noexcept { return _raw; }
|
||||
|
||||
/// @brief Assign operator with raw pointer.
|
||||
inline OptionalUniquePtr<T>& operator=(T* rhs) {
|
||||
if (_raw == rhs) {
|
||||
|
||||
Reference in new issue
Block a user