EPOC   SDK Home Glossary Indexes Previous Next Up

CleanupDeletePushL() function


CleanupDeletePushL() — Push cleanup item onto cleanup stack; cleanup action deletes

template <class T>
void CleanupDeletePushL(T* aPtr);

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 Delete() of the templated class CleanupDelete<class T> and is invoked as a result of a subsequent call to CleanupStack::PopAndDestroy().

Arguments

T* aPtr

A pointer to a <class T> type object.

Notes

See Cleanup Support, TRAP and Leave for more information.

EPOC       SDK Home Glossary Indexes Previous Next Up