C++智能指针C++智能指针种类三种。 unique_ptr<> 不能复制,只能移动 独占资源管理 make_unique(args…)创建 shared_ptr<> 引用计数,多个shared_ptr共享同一对象,最后一个销毁时释放...2025-09-01