12#ifndef ZYPP_CORE_BASE_DTORRESET_H
13#define ZYPP_CORE_BASE_DTORRESET_H
15#include <zypp-core/base/PtrTypes.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 )
Assign a vaiable a certain value when going out of scope.
DtorReset(TVar &var_r, const TVal &val_r)
shared_ptr< void > _pimpl
Easy-to use interface to the ZYPP dependency resolver.
Requires TVal being copy constructible, and assignment TVar = TVal defined.
Impl(TVar &var_r, const TVal &val_r)