阅读背景:

boost智能指针之shared_ptr和weak_ptr

来源:互联网 
std::auto_ptr很多的时候并不能满足我们的要求,比如auto_ptr不能用作STL容器的元素。boost的smart_ptr中提供了4种智能指针和2种智能指针数组来作为std::auto_ptr的补充。  std::auto_ptr很多的时候并不能满足我们的要求,比如auto_ptr不能用作STL容器的元


你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: