I started studying smart pointers of C++11 and I don’t see any useful use of std::weak_ptr
. Can someone tell me when std::weak_ptr
is useful/necessary?
I started studying smart pointers of C++11 and I don’t see any useful use of std::weak_ptr
. Can someone tell me when std::weak_ptr
is useful/necessary?