2013年7月26日
摘要: Singleton模式是常用的设计模式之一,但是要实现一个真正实用的设计模式却也不是件容易的事情。1. 标准的实现class Singleton{public: static Singleton * Instance() { if( 0== _instance) { _instance = new Singleton; } return _instance; }protected: Sin... 阅读全文
posted @ 2013-07-26 16:32 Chopper 阅读(379) 评论(0) 推荐(0) 编辑