摘要:
直接来看代码: 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... 阅读全文