51template <
typename Derived>
74 static Derived instance;
~Singleton()=default
Default destructor is protected to prevent deletion through base class pointer.
Singleton(const Singleton &)=delete
Copy constructor is deleted to prevent duplicating the singleton instance.
Singleton()=default
Default constructor is protected to prevent instantiation outside of derived classes.
Singleton & operator=(const Singleton &)=delete
Assignment operator is deleted to prevent duplicating the singleton instance.
static Derived & getInstance()
Gets the singleton instance of the derived class.
Definition Singleton.h:73
Contains all classes and functions related to the Uniot Core.