Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

template<class T, void Destruct = RTAutoResDestruct<T>, T NilRes = RTAutoResNil<T>>
RTAutoRes& RTAutoRes< T, Destruct, NilRes >::operator= ( a_hRes  )  [inline]

Assignment from a value.

This destroys any resource currently managed by the object before taking on the new one.

a_hRes The handle to the new resource.

Definition at line 151 of file autores.h.

References RTAutoRes< T, Destruct, NilRes >::m_hRes.

        if (m_hRes != NilRes())
        m_hRes = a_hRes;
        return *this;

Generated by  Doxygen 1.6.0   Back to index