Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:55

0001 #ifndef DETECTOR_DESCRIPTION_CORE_DDI_SINGLETON_H
0002 #define DETECTOR_DESCRIPTION_CORE_DDI_SINGLETON_H
0003 
0004 namespace DDI {
0005   template <class I>
0006   class Singleton {
0007   public:
0008     typedef I value_type;
0009     virtual ~Singleton() = default;
0010     static value_type& instance();
0011 
0012     Singleton(void) = delete;
0013     Singleton(const Singleton&) = delete;
0014     Singleton& operator=(const Singleton&) = delete;
0015   };
0016 }  // namespace DDI
0017 
0018 #endif