paludis Version 3.0.2
The one true package mangler
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

◆ Save() [1/2]

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

Constructor.

◆ Save() [2/2]

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

Constructor, with convenience assignment to new_value.

◆ ~Save()

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

Destructor.


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