FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
cpp::ScopedValue< T > Class Template Reference

#include <cpptools/scoped_value.h>

Public Member Functions

 ScopedValue (T &variable, T scopeValue)
 
 ~ScopedValue ()
 

Detailed Description

template<typename T>
class cpp::ScopedValue< T >

Allows to change the value of a variable during the current scope, upon destruction, the original value is restored

Constructor & Destructor Documentation

template<typename T >
cpp::ScopedValue< T >::ScopedValue ( T &  variable,
scopeValue 
)
template<typename T >
cpp::ScopedValue< T >::~ScopedValue ( )

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