template class shared_ptr #include<memory> shared_ptr是C++ 11之后标准库引入的一个特性,用于简化内存管理,防止内存泄露。 1.shared_ptr的作用是什么? Objects of shared_……