Add DefaultIntegral::reset
authorMichael Andres <ma@suse.de>
Mon, 11 Oct 2010 15:02:35 +0000 (17:02 +0200)
committerMichael Andres <ma@suse.de>
Mon, 11 Oct 2010 15:02:35 +0000 (17:02 +0200)
zypp/base/DefaultIntegral.h

index 381d541c81210ae6cb7478f83ac34ed0c894b639..4ddf774d050369564253a4653837555fb4274937 100644 (file)
@@ -57,6 +57,9 @@ namespace zypp
       operator _Tp  () const { return get(); }
       //@}
 
+      /** Reset to the defined initial value. */
+      DefaultIntegral & reset()        { _val = _Initial; return *this; }
+
       /** \name Arithmetic operations.
        * \c + \c - \c * \c / are provided via conversion to _Tp.
       */