摘要: Boost.ScopeExit provides the macro BOOST_SCOPE_EXIT, which can be used to define something that looks like a local function but doesn't have a name. H 阅读全文
posted @ 2019-05-29 18:50 c++11 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: 1. boost::ptr_vector boost::ptr_vector knows that it stores dynamically allocated objects, member functions like back() return a reference to a dynami 阅读全文
posted @ 2019-05-29 17:55 c++11 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1. boost::scoped_ptr is a smart pointer that is the sole owner of a dynamically allocated object and cannot be copied or moved. A smart pointer of typ 阅读全文
posted @ 2019-05-29 17:30 c++11 阅读(311) 评论(0) 推荐(0) 编辑