从他的STL书中读到Jossutis对auto_ptr的解释之后,我得到了一个强烈的印象,即我会尝试使用它的任何任务100%失败,因为很多auto_ptr的陷阱之一.
我的问题是:有没有任何真正的生活任务,其中auto_ptr真的很有用,并且适合那里吗?
c++ stl smart-pointers auto-ptr
auto-ptr ×1
c++ ×1
smart-pointers ×1
stl ×1