]> git.stg.codes - stg.git/blobdiff - include/stg/resetable.h
Merge remote-tracking branch 'origin/stg-2.409' into ticket37
[stg.git] / include / stg / resetable.h
index 8a6ad27c13584e04ca05c98caae867e97d18699a..a451b357326cd946c72b77ddf7b4bd57c65b1a36 100644 (file)
@@ -50,6 +50,11 @@ public:
             is_set = true;
         }
     }
             is_set = true;
         }
     }
+    void maybeSet(value_type& dest) const
+    {
+        if (is_set)
+            dest = value;
+    }
 
 private:
     value_type value;
 
 private:
     value_type value;