[討論] Customizing new and delete

看板C_and_CPP作者 (帥氣大叔)時間11年前 (2013/06/09 12:37), 編輯推噓1(105)
留言6則, 5人參與, 最新討論串1/1
最近再讀Effective C++ 書中第八章提到Customizing new and delete 看完之後我其實滿好奇的 到底什麼樣的時候會有這個需求呢?? 不知道各位板上有沒有這樣的經驗 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.242.67

06/09 13:19, , 1F
item 50: when it makes sense to replace new
06/09 13:19, 1F

06/09 15:33, , 2F
pool; singleton; factory
06/09 15:33, 2F

06/09 17:44, , 3F
謝謝MOON大大 @azure大大 因為我沒遇過 所以想看下實例XD
06/09 17:44, 3F

06/09 21:17, , 4F
我也是隨便舉些簡單的設計模式(design pattern)而已 :P
06/09 21:17, 4F

06/10 13:07, , 5F
自己管理記憶體的時候可以用
06/10 13:07, 5F

06/10 23:37, , 6F
Memory leaks detector & etc.
06/10 23:37, 6F
文章代碼(AID): #1Hj0PmAH (C_and_CPP)