12 #ifndef ZYPP_BASE_DTORRESET_H
13 #define ZYPP_BASE_DTORRESET_H
54 :
_pimpl( new
Impl<TVar,TVar>( var_r, var_r ) )
56 template<
class TVar,
class TVal>
58 :
_pimpl( new
Impl<TVar,TVal>( var_r, val_r ) )
64 template<
class TVar,
class TVal>
67 Impl( TVar & var_r,
const TVal & val_r )
83 #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