std::weak_ptr is a smart pointer that holds a non-owning ("weak") reference to an object that is managed by std::shared_ptr
I started studying smart pointers of C++11 and I don't see any useful use of std::weak_ptr. Can someone …
c++11 shared-ptr weak-ptr c++-faqI am reading Scott Meyers "Effective C++" book. It was mentioned that there are tr1::shared_ptr and tr1::weak_…
c++ c++11 shared-ptr weak-ptr cyclic-referenceFor example, there is a function that finds an object and returns shared_ptr if object is found, and must …
c++ shared-ptr smart-pointers weak-ptrIf I understand correctly, a weak_ptr doesn't increment the reference count of the managed object, therefore it doesn't represent …
c++ shared-ptr smart-pointers unique-ptr weak-ptrIn my current project I am using boost::shared_ptr quite extensively. Recently my fellow team mates have also started …
c++ memory-management boost shared-ptr weak-ptrI understand how to use weak_ptr and shared_ptr. I understand how shared_ptr works, by counting the number …
c++ boost weak-references tr1 weak-ptrclass MyClass { public: MyClass(std::weak_ptr<MyClass> parent){} } i want to do this: auto newInstance = std::make_…
c++ casting null shared-ptr weak-ptrI want to compare two std::weak_ptr's or one std::weak_ptr and one std::shared_ptr for equality. …
c++ c++11 shared-ptr weak-ptrIs there a way to distinguish between an assigned (possibly expired) weak_ptr and a non-assigned one. weak_ptr<…
c++ c++11 weak-ptr