12 #ifndef ZYPP_BASE_DTORRESET_H
13 #define ZYPP_BASE_DTORRESET_H
56 :
_pimpl( new
Impl<TVar,TVar>( var_r, var_r ) )
58 template<
class TVar,
class TVal>
60 :
_pimpl( new
Impl<TVar,TVal>( var_r, val_r ) )
66 template<
class TVar,
class TVal>
69 Impl( TVar & var_r,
const TVal & val_r )
85 #endif // ZYPP_BASE_DTORRESET_H
Requires TVal being copy constructible, and assignment TVar = TVal defined.
Assign a vaiable a certain value when going out of scope.
DtorReset(TVar &var_r, const TVal &val_r)
Impl(TVar &var_r, const TVal &val_r)
shared_ptr< void > _pimpl