Top "Shared-ptr" questions

Reference counted smart pointer class implementing shared ownership

shared_ptr: horrible speed

When comparing two variants of pointers—classic vs. shared_ptr—I was surprised by a significant increase of the running …

c++ performance compiler-construction shared-ptr
boost Shared_pointer NULL

I'm using reset() as a default value for my shared_pointer (equivalent to a NULL). But how do I check …

c++ boost shared-ptr smart-pointers
How to release pointer from boost::shared_ptr?

Can boost::shared_ptr release the stored pointer without deleting it? I can see no release function exists in the …

c++ boost shared-ptr
C++ smart pointer const correctness

I have a few containers in a class, for example, vector or map which contain shared_ptr's to objects living …

c++ constants shared-ptr
shared_from_this causing bad_weak_ptr

I am trying to keep a list of connected clients in asio. I have adapted the chat server example from …

c++ boost shared-ptr c++-faq
Should I switch from using boost::shared_ptr to std::shared_ptr?

I would like to enable support for C++0x in GCC with -std=c++0x. I don't absolutely necessarily need …

c++ boost stl c++11 shared-ptr
Is it correct to return null shared_ptr?

For 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-ptr
Why do std::shared_ptr<void> work

I found some code using std::shared_ptr to perform arbitrary cleanup at shutdown. At first I thought this code …

c++ c++11 shared-ptr
How is the std::tr1::shared_ptr implemented?

I've been thinking about using shared pointers, and I know how to implement one myself--Don't want to do it, so …

c++ shared-ptr tr1
Detach a pointer from a shared_ptr?

Possible Duplicate: How to release pointer from boost::shared_ptr? A function of my interface returns a pointer to an …

c++ boost shared-ptr