std::vector > param; param中vector析构的时候,里面的智能指针会释放。Vector保存智能指针是可以释放智能指针 所指向的对象的 std::shared_ptr> param; C++的Vector 保存原始指针 的时候 Vector 析构的时候是不会释放指针指向的