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.
here is why
所有跟帖:
•
thanks. u r real a guru! happy new yr!
-戲雨飛鷹-
♀
(0 bytes)
()
01/23/2009 postreply
13:31:58
•
those are really basics
-ncpga-
♂
(26 bytes)
()
01/23/2009 postreply
13:56:49
•
haha, absolutely :)
-戲雨飛鷹-
♀
(0 bytes)
()
01/23/2009 postreply
14:14:07