摘要: #defineSINGLETON_CLASS_NO_DEF_CONSTRUCT_BODY(class_name)\private:\class_name();\class_name(constclass_name&);\class_name&operator=(constclass_name&);\public:\staticclass_name&Instance()\{\staticclass_nameone;\returnone;\}#defineSINGLETON_CLASS(class_name)\private:\class_name(){}\clas 阅读全文
posted @ 2011-08-01 23:40 kenter 阅读(258) 评论(0) 推荐(0) 编辑