pImpl
pImpl Idiom in C++
|
#include <singleton.h>
Public Member Functions | |
Singleton (const Singleton &)=delete | |
Make the class non construction-copyable and non copyable. | |
Singleton & | operator= (const Singleton)=delete |
Make the class non copyable. | |
Static Public Member Functions | |
static T & | instance () |
Get the instance object. | |
Protected Member Functions | |
Singleton () | |
Singleton class.
How to use:
T | the class to be singleton |
Definition at line 30 of file singleton.h.
|
delete |
Make the class non construction-copyable and non copyable.
|
inlineprotected |
Definition at line 49 of file singleton.h.
|
static |