摘要: 参考链接 一、unique_ptr<> 1、直接支持动态数组,支持下标访问,也可以用get获取内置指针来访问。 2、申明形式:unique_ptr<T[ ]> u(p) unique_prt< int[ ] > up( new int[10] ); up.release(); //unique_pt 阅读全文
posted @ 2020-09-08 18:09 kuaqi 阅读(481) 评论(0) 推荐(0) 编辑