EPOC   SDK Home Glossary Indexes Previous Next Up

CleanupReleasePushL() function


CleanupReleasePushL() — Push cleanup item onto cleanup stack; cleanup action calls releases object

template <class T>
void CleanupReleasePushL(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 Release() of the templated class CleanupRelease<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