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

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

Give up ownership the current resource, handing it to the caller.

The current resource handle.
Nothing happens to the resource when the object goes out of scope.

Definition at line 174 of file autores.h.

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

        T Tmp = m_hRes;
        m_hRes = NilRes();
        return Tmp;

Generated by  Doxygen 1.6.0   Back to index