This is a helper template class for managing singleton objects allocated on the heap. The class ensures proper deletion (including calling of the destructor) of singleton objects when the application that created them terminates.
Member Functions: get
Creates the SingletonHolder.
Destroys the SingletonHolder and the singleton object that it holds.
S * get();
Returns a pointer to the singleton object hold by the SingletonHolder. The first call to get will create the singleton.