Curiously Recurring Template Pattern (CRTP) for Meyers singleton. More...
#include <utl/Singleton.h>
Public Attributes | |
static T &return | instance |
Protected Member Functions | |
Singleton () | |
~Singleton () | |
Private Member Functions | |
Singleton & | operator= (const Singleton &) |
Singleton (const Singleton &) | |
Curiously Recurring Template Pattern (CRTP) for Meyers singleton.
The singleton class is implemented as follows
Singleton automatically prevents copying of the derived class.
Definition at line 36 of file Singleton.h.
|
inlineprotected |
Definition at line 52 of file Singleton.h.
|
inlineprotected |
Definition at line 53 of file Singleton.h.
|
private |
|
private |
T& return utl::Singleton< T >::instance |
Definition at line 44 of file Singleton.h.