paludis  Version 2.6.0
List of all members
paludis::Save< T_ > Class Template Reference

#include <save.hh>

Basic operations

 Save (T_ *const p)
 
 Save (T_ *const p, const T_ &new_value)
 
 ~Save ()
 

Detailed Description

template<typename T_>
class paludis::Save< T_ >

Save the value of a particular variable and assign it a new value for the duration of the Save instance's lifetime (RAII, see EffCpp item 13 or TCppPL section 14.4).

Constructor & Destructor Documentation

template<typename T_ >
paludis::Save< T_ >::Save ( T_ *const  p)
inline

Constructor.

template<typename T_ >
paludis::Save< T_ >::Save ( T_ *const  p,
const T_ &  new_value 
)
inline

Constructor, with convenience assignment to new_value.

template<typename T_ >
paludis::Save< T_ >::~Save ( )
inline

Destructor.


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