]> git.stg.codes - stg.git/blobdiff - include/stg/resetable.h
Ticket 37. The time_t currentTime parameter added in
[stg.git] / include / stg / resetable.h
index 8a6ad27c13584e04ca05c98caae867e97d18699a..a451b357326cd946c72b77ddf7b4bd57c65b1a36 100644 (file)
@@ -50,6 +50,11 @@ public:
             is_set = true;
         }
     }
+    void maybeSet(value_type& dest) const
+    {
+        if (is_set)
+            dest = value;
+    }
 
 private:
     value_type value;