我开始研究C++ 11的智能指针,我没有看到任何有用的用法std::weak_ptr.有人能告诉我什么时候std::weak_ptr有用/必要吗?
std::weak_ptr
c++ smart-pointers shared-ptr weak-ptr c++11
c++ ×1
c++11 ×1
shared-ptr ×1
smart-pointers ×1
weak-ptr ×1