2015年4月23日

template of class

摘要: class template will call the constructor of its member object before constructor itself...... 阅读全文

posted @ 2015-04-23 21:18 shoutcharter 阅读(95) 评论(0) 推荐(0) 编辑

auto_ptr, which can release the space automatically

摘要: C++的auto_ptr所做的事情,就是动态分配对象以及当对象不再需要时自动执行清理。使用std::auto_ptr,要#include 。[1]中文名自动指针外文名auto_ptr在C++中, auto_ptr是一个类,它用来实现对动态分配对象的自动释放。它的源代码:?12345678910111... 阅读全文

posted @ 2015-04-23 21:16 shoutcharter 阅读(194) 评论(0) 推荐(0) 编辑

导航