摘要:
boost的singletonhttp://www.cnblogs.com/fullsail/archive/2013/01/03/2842618.htmlhttp://leoxiang.com/dev/different-cpp-singleton-implementaionView Code // 实现基于以下假设:良好的设计在进入main函数之前应该是单线程的,// 因此可以使用全局变量的方式来设计singleton,// 并且保证在使用该singleton之前其已经被正确的初始化。 template <typename T>class Singleton{public: s 阅读全文
浙公网安备 33010602011771号