c++单例模式

如何设计一个合格的单例模式也是个问题。 一下例子都是懒汉式,即用到再生成 class Singleton{ private: Singleton(); Singleton(const Singleton& other); public: static Singleton* getInstance()
posted @ 2023-04-18 13:26  woodx  阅读(15)  评论(0编辑  收藏  举报