auto_ptr智能指针:其析构函数自动对其所指对象调用delete 若对象auto_ptr不指向某一资源,它会设为null shared_ptr具有相同功能 但是多个shared_ptr对象能同时指向同一资源 注意: