CRTP for leaking singleton. More...
#include <utl/Singleton.h>
Static Public Member Functions | |
static T & | GetInstance () |
Protected Member Functions | |
LeakingSingleton () | |
~LeakingSingleton () | |
Private Member Functions | |
LeakingSingleton (const LeakingSingleton &) | |
LeakingSingleton & | operator= (const LeakingSingleton &) |
CRTP for leaking singleton.
This type of creation (Gamma singleton) leaks the object at the end of the run, i.e. class T destructor does not get called in at_exit().
This singleton can be implemented as follows
LeakingSingleton automatically prevents copying of the derived class.
Definition at line 124 of file Singleton.h.
|
inlineprotected |
Definition at line 136 of file Singleton.h.
|
inlineprotected |
Definition at line 137 of file Singleton.h.
|
private |
|
inlinestatic |
Definition at line 128 of file Singleton.h.
|
private |