class Singleton{ public: static Singleton& getInstance(){ static Singleton instance; return instance; } private: Singleton() = default; ~Singleton() = default; Singleton(const Singleton&) = delete; Singleton(Singleton&&) = delete; void operator=(const Singleton&) = delete; void operator=(Singleton&&) = delete; }
|