摘要: 1.最简单的单例模式,不考虑线程安全以及内存泄漏 #pragma once #include <iostream> using namespace std; class Singleton { private: Singleton() { cout << "construct" << endl; } 阅读全文
posted @ 2020-03-08 22:55 强威 阅读(204) 评论(0) 推荐(0) 编辑