diff --git a/source/mijin/util/annot.hpp b/source/mijin/util/annot.hpp index 471afca..6ee18e4 100644 --- a/source/mijin/util/annot.hpp +++ b/source/mijin/util/annot.hpp @@ -170,6 +170,9 @@ public: [[nodiscard]] constexpr const T& get() const MIJIN_NOEXCEPT { return base_; } + [[nodiscard]] + constexpr T release() && MIJIN_NOEXCEPT { return std::exchange(base_, nullptr); } + template friend class NotNullable; };