摘要:
直接来看代码: 1 #include <iostream> 2 3 class Singleton 4 { 5 private: 6 Singleton(){std::cout<<"Singleton()"<<std::endl;}; 7 Singleton(const Singleton&) = delete; 8 Singleton& operator=(const Singleton&)= delete; 9 static Singleton* _instance;10 11 p... 阅读全文
posted @ 2013-03-24 00:09
轻典
阅读(324)
评论(0)
推荐(0)