#ifndef WIRECELL_SINGLETON
#define WIRECELL_SINGLETON

namespace WCP {

    template <class T>
    class Singleton {
       public:
        static T& Instance()
        {
            static T instance;
            return instance;
        }

       private:
        Singleton() {}
        ~Singleton() {}
        Singleton(Singleton const&) {}
        Singleton& operator=(Singleton const&) {}
    };
}  // namespace WCP

#endif
