EPOC   SDK Home Glossary Indexes Previous Next Up

CleanupClosePushL() function


CleanupClosePushL() — Push cleanup item onto cleanup stack; cleanup action closes object

template <class T>
void CleanupClosePushL(T& aRef);

Defined in

e32base.h

Description

Use this templated function to construct and push a TCleanupItem object onto the cleanup stack.

The TCleanupItem encapsulates:

The cleanup operation is the private static function Close() of the templated class CleanupClose<class T> and is invoked as a result of a subsequent call to CleanupStack::PopAndDestroy().

Arguments

T& aRef

A reference to a <class T> type object.

Notes

See Cleanup Support, TRAP and Leave for more information.

EPOC       SDK Home Glossary Indexes Previous Next Up