here is why

回答: use singletonncpga2009-01-23 12:54:34

singleton object is on process heap. and it is a pattern that "created once, referenced many times" so your code doesn't need to do new/delete at all. one example is memory pool obj, connection pool obj, cache obj, etc.

所有跟帖: 

thanks. u r real a guru! happy new yr! -戲雨飛鷹- 給 戲雨飛鷹 發送悄悄話 戲雨飛鷹 的博客首頁 (0 bytes) () 01/23/2009 postreply 13:31:58

those are really basics -ncpga- 給 ncpga 發送悄悄話 (26 bytes) () 01/23/2009 postreply 13:56:49

haha, absolutely :) -戲雨飛鷹- 給 戲雨飛鷹 發送悄悄話 戲雨飛鷹 的博客首頁 (0 bytes) () 01/23/2009 postreply 14:14:07

請您先登陸,再發跟帖!