我理解如何使用weak_ptr和shared_ptr.我shared_ptr通过计算其对象中的引用数来理解它是如何工作的.weak_ptr工作怎么样?我尝试阅读boost源代码,并且我不熟悉boost以了解它使用的所有内容.
weak_ptr
shared_ptr
谢谢.
c++ boost weak-references tr1 weak-ptr
boost ×1
c++ ×1
tr1 ×1
weak-ptr ×1
weak-references ×1