摘要:
C++11中的智能指针主要分为3种:std::unique_ptr、std::shared_ptr,std::weak_ptr,存在于头文件 <memory>中。 对于智能指针的创建一般优先建议,分别使用 make_unique 和 make_shared,而不是使用new的指针来构建。这种方式创建 阅读全文
posted @ 2024-08-15 16:25
Jeffxue
阅读(246)
评论(0)
推荐(0)
浙公网安备 33010602011771号