From e485a7900bfc9e33fb6da74bdcb5e89dd586cc33 Mon Sep 17 00:00:00 2001 From: CHatingPython Date: Wed, 24 Jun 2026 14:53:50 +0200 Subject: [PATCH] feat(furvm): introduce handle dispatch function --- furvm/include/furvm/handle.hpp | 5 +++++ 1 file changed, 5 insertions(+) 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; };