ModifyRestore< T > Class Template Reference

Modifies a value on construction and restores it on destruction. More...

#include <ModifyRestore.h>

Public Member Functions

 ModifyRestore (T &value, const T &modified_value)
 Modify constructor.
 
 ModifyRestore (T &value)
 Modify constructor.
 
 ~ModifyRestore ()
 Restore destructor.
 

Protected Attributes

T & the_value
 Reference to the value to be restored.
 
restore_value
 Copy of the value before modification.
 

Detailed Description

template<class T>
class ModifyRestore< T >

Modifies a value on construction and restores it on destruction.


The documentation for this class was generated from the following file:

Generated using doxygen 1.8.17