diff --git a/furvm/include/furvm/handle.hpp b/furvm/include/furvm/handle.hpp index 68662e4..01d5dbe 100644 --- a/furvm/include/furvm/handle.hpp +++ b/furvm/include/furvm/handle.hpp @@ -226,6 +226,11 @@ public: * @return The value reference. */ const_reference value() const { return m_value->second; } +public: + /** + * @brief Invalidates the handle without releasing. + */ + void dispatch() { m_value = nullptr; } private: pair_type* m_value = nullptr; };