unique_ptr singleton
//SINGLETON - UNIQUE_PTR #include <memory> class Singleton { Singleton(); public: static std::unique_ptr<Singleton>& Instance() //Public or private { static std::unique_ptr<Singleton> singleton {new Singleton()} return singleton; } };