X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/64b687f8ec36a103865044613cb0f42f98aeda3a..6e222d63cfc8894130d9b0cf80bb74294f9f2e75:/include/stg/resetable.h

diff --git a/include/stg/resetable.h b/include/stg/resetable.h
index c78d0247..8a6ad27c 100644
--- a/include/stg/resetable.h
+++ b/include/stg/resetable.h
@@ -42,6 +42,14 @@ public:
     const T & data() const throw() { return value; }
     bool empty() const throw() { return !is_set; }
     void reset() throw() { is_set = false; }
+    void splice(const RESETABLE<T> & rhs)
+    {
+        if (rhs.is_set)
+        {
+            value = rhs.value;
+            is_set = true;
+        }
+    }
 
 private:
     value_type value;