Location:
e32base.h
class TAutoClose;
Automatically calls Close()
on an object when that object goes out of scope.
The behaviour takes advantage of the fact that the compiler automatically destroys objects that go out of scope.
Defined in TAutoClose
:
Pop()
, PushL()
, iObj
, ~TAutoClose()
inline ~TAutoClose();
Destructor.
The implementation calls Close()
on iObj, the instance of the template class.
inline void PushL();
Pushes a cleanup item onto the cleanup stack, so that Close()
is called on the templated class object, iObj, if a leave occurs.
T iObj;
An instance of the template class.