DtkCore
DTK Core module
|
#include <dsingleton.h>
Public 成员函数 | |
DSingleton (T &&)=delete | |
DSingleton (const T &)=delete | |
void | operator= (const T &)=delete |
静态 Public 成员函数 | |
static T & | ref () |
a simple singleton template for std c++ 11 or later.
example:
通过c++11的特性实现的单例模板
使用示例: