Nui Engine
A game engine framework
|
Template class for creating a singleton instance of a class. More...
#include <Singleton.h>
Public Member Functions | |
Singleton (Singleton &&)=delete | |
Singleton (const Singleton &)=delete | |
Singleton & | operator= (Singleton &&)=delete |
Singleton & | operator= (Singleton &)=delete |
Static Public Member Functions | |
static T & | Get () noexcept |
Get the singleton instance. | |
static void | Destroy () noexcept |
Destroy the singleton instance. | |
Template class for creating a singleton instance of a class.
T | The type of the class to be made a singleton. |
|
inlinestaticnoexcept |
Get the singleton instance.