X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/127981f11d5d3553925f01102f7c253e012829b5..87300676aa712b358ab98beaa5082b7a19e5d97a:/include/stg/resetable.h?ds=inline

diff --git a/include/stg/resetable.h b/include/stg/resetable.h
index 8a6ad27c..a451b357 100644
--- a/include/stg/resetable.h
+++ b/include/stg/resetable.h
@@ -50,6 +50,11 @@ public:
             is_set = true;
         }
     }
+    void maybeSet(value_type& dest) const
+    {
+        if (is_set)
+            dest = value;
+    }
 
 private:
     value_type value;