Ray's playground

 

2011年6月13日

Item 8:Understand the different meanings of new and delete.(More Effective C++)

摘要: Though you want to create an object on the heap, use the new operator. It both allocates memory and calls a constructor for the object. If you only want to allocate memory, call operator new; no constructor will be called. If you want to customize the memory allocation that takes place when heap ob. 阅读全文

posted @ 2011-06-13 16:33 Ray Z 阅读(148) 评论(0) 推荐(0) 编辑

导航