cleanupsupport.h

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef CLEANUPSUPPORT_H
#define CLEANUPSUPPORT_H

// CLASS DECLARATION

/**
*
* @class    CleanupResetAndDestroy CleanupSupport.h 
* @brief    Cleanup support for RPointerArrays that own their contents.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/

template <class T>
class CleanupResetAndDestroy
{
public:
    // Push an item onto the CleanupStack using a TCleanupItem.
    inline static void PushL(T& aRef);

private:
    // Function called when the item is destroyed from the Cleanup Stack.
    static void ResetAndDestroy(TAny* aPtr);
};

#endif    // #ifndef CLEANUPSUPPORT_H

// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?