Singleton Template Class – C++

#ifndef SINGLETON_H
#define SINGLETON_H

template <class T>

class Singleton {
public:
  static T* Instance() {
    static T myT;
    return myT;
  }
};

#endif