#include <stddef.h>template<typename T>class Singleton{public: static T &getInstance () { if(NULL == instance) { instance = new T(); } return *instance; } static void delInstance () { if(NULL != instance) { delete instance; instance = NULL; } }protected: Singleton () { } ~Sing Read More