Automatic resource management is designed to increase the baseline usability of the Symbian platform for Symbian Developers.
The use of the Symbian Cleanup Stack is more difficult, error-prone and requires writing extra code for explicit cleanup using the CleanupStack. In contrast, the Symbian C++ class templates for automatic resource management are relatively easier to use. They provide automatic exception-safe cleanup upon normal or exceptional exit from a scope, in which case they do not require writing any code for invoking the cleanup of resources. The resources are automatically cleaned up by the destructors of the template classes in that case.
The following are the characteristics of automatic resource management:
The following variants of the class templates for automatic resource management have been provided:
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.