paludis::Save< T_ > Class Template Reference
[Utilities]

#include <save.hh>

List of all members.

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:
Generated on Mon Sep 21 10:36:12 2009 for paludis by  doxygen 1.5.4