SmartPointer
Spectrumâ„¢ Technology Platform provides a class called SmartPointer that uses a simple form of reference counting to help track allocation of dynamic memory and perform memory management task.
For example:
SmartPointer<Server> server =new Server();
server.connect();
...
server.disconnect();
You do not need to delete the memory for pointer server. SmartPointer handles all memory management for you.