#ifndef SINGLETON_H #define SINGLETON_H template class Singleton { public: static T& Ref() { static T instance; return instance; } }; #endif // SINGLETON_H