Reference counted smart pointer class implementing shared ownership
I'm having trouble understanding the usage of smart pointers as class members in C++11. I have read a lot about …
c++ c++11 shared-ptr smart-pointers unique-ptrI was wondering if i need to check whether sp is null before i use it. Correct me if I …
c++ shared-ptrI have something like shared_ptr<Type> t(makeSomething(), mem_fun(&Type::deleteMe)) I now need to …
c++ boost smart-pointers shared-ptrWhat's the difference between: std::shared_ptr<int> p = std::shared_ptr<int>( new int ); and …
c++ c++11 shared-ptr smart-pointersSimple question here: are you allowed to explicitly delete a boost::shared_ptr yourself? Should you ever? Clarifying, I don't …
c++ boost shared-ptr boost-smart-ptrI have a question about C++11 best practices. When clearing a shared_ptr, should I use the reset() function with …
c++ c++11 shared-ptr reset nullptrI have this code that doesn't work, but I think the intent is clear: testmakeshared.cpp #include <memory> …
c++ c++11 shared-ptrI'm writing an accessor method for a shared pointer in C++ that goes something like this: class Foo { public: return_…
c++ boost constants shared-ptrI'm reading http://gcc.gnu.org/onlinedocs/libstdc++/manual/shared_ptr.html and some thread safety issues are still not …
c++ c++11 shared-ptrDoes C++11 standard library provide any utility to convert from a std::shared_ptr to std::unique_ptr, or vice …
c++ c++11 shared-ptr unique-ptr