Reference counted smart pointer class implementing shared ownership
What's the equivalent to the following: std::vector<Foo*> vec; vec.push_back(NULL); when dealing with boost::…
c++ boost null pointers shared-ptrIf I declare an object wrapped in a shared pointer: std::shared_ptr<myClass> myClassObject(new myClass()); then …
c++ c++11 shared-ptr c++-faqWhat is the best method to go about passing a shared_ptr of a derived type to a function that …
c++ casting c++11 shared-ptr smart-pointersI'm trying to work out how to use std::shared_ptr with a custom deleter. Specifically, I'm using it with …
c++ sdl shared-ptrI am currently trying to learn how to use smart pointers. However while doing some experiments I discovered the following …
c++ this shared-ptr this-pointerI have many boost::shared_ptr<MyClass> objects, and at some point I intentionally want to delete some …
c++ memory-management boost shared-ptrI've read that "Multiple threads can simultaneously read and write different shared_ptr objects, even when the objects are copies …
c++ std shared-ptrI 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-referenceIf I have a function that needs to work with a shared_ptr, wouldn't it be more efficient to pass …
c++ boost pass-by-reference pass-by-value shared-ptrI have a query. Can we get the object that a shared pointer points to directly? Or should we get …
c++ shared-ptr shared smart-pointers