Ray's playground

 

2010年1月5日

Item 13: Use objects to manage resources.(Effective C++)

摘要: To prevent resource leaks, use RAII objects that acquire resources in their constructors and release them in their destructors.Two commonly useful RAII classes are TR1::shared_ptr and auto_ptr. tr1::s... 阅读全文

posted @ 2010-01-05 22:09 Ray Z 阅读(172) 评论(0) 推荐(0) 编辑

导航