Reference counted smart pointer class implementing shared ownership
I am just learning about smart pointers, and I am having trouble assigning a pre-existing location of a variable to …
c++ std shared-ptr tr1I have a function defined as follows: void foo(std::shared_ptr<X> x) { ... }; If I declare a …
c++ c++11 shared-ptr move-semanticsI understand that using static_pointer_cast with unique_ptr would lead to a shared ownership of the contained data. …
c++ c++11 casting shared-ptr unique-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-ptrThis is a basic question, but I did not find a previous post about it. The title of the following …
c++ c++11 shared-ptrIn other words, how does the implementation keeps track of the count? Is there a map-like object maintained which is …
c++ memory-management memory-leaks smart-pointers shared-ptrI'm flip-flopping between naming conventions for typedef'ing the boost::shared_ptr template. For example: typedef boost::shared_ptr<Foo&…
c++ boost naming-conventions shared-ptrI have a question about boost::shared_ptr<T>. There are lots of thread. using namespace boost; class …
c++ boost thread-safety shared-ptr boost-smart-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 have two classes A and B, B inherits from A. If I have a shared_ptr<A> …
c++ polymorphism shared-ptr dynamic-cast