4.2、std::unique_ptr/std::shared_ptr/std::weak_ptr(智能指针)

智能指针的设计哲学与核心价值 智能指针的设计基于RAII(资源获取即初始化)原则,核心目标是: • 自动管理资 … 继续阅读 4.2、std::unique_ptr/std::shared_ptr/std::weak_ptr(智能指针)