InterviewGuide icon indicating copy to clipboard operation
InterviewGuide copied to clipboard

C++11新标准 4、智能指针的原理、常用的智能指针及实现 勘误

Open jiang849725768 opened this issue 2 years ago • 0 comments

C++11新标准里提到unique_ptr不支持普通的拷贝和赋值操作,不能用在STL标准容器中 实际上这里指出将 unique_ptr 实例添加到 C++ 标准库容器很有效,因为通过 unique_ptr 的移动构造函数,不再需要进行复制操作。

jiang849725768 avatar Jun 12 '23 12:06 jiang849725768