make_unique的使用

关于make_unique的构造及使用例程,MSDN的讲解很是详细 (https://msdn.microsoft.com/zh-cn/library/dn439780.aspx )安全 使用过程当中,个人理解主要有这么几个关键点:函数 1.  make_unique 同 unique_ptr 、auto_ptr 等同样,都是 smart pointer,能够取代new 而且无需 delete p
相关文章
相关标签/搜索