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:
LCleanedup class templates
The LCleanedup class templates provided are:
LManaged class templates
The LManaged class templates provided are: