Sign up ×  I've been thinking about using shared pointers, and I
know how to implement one myself--Don't want to do it, so I'm
trying std::tr1::shared_ptr,and I have couple of questions...
How is the reference counting implemented? Does it use a doubly
linked list? (Btw, I've already googled, but I can't find
anything reliable.)  Are there any pitfalls for using the
std::tr1::shared_ptr?  share|improve this question “Does it use
a doubly linked list?” – For what? How would this help in
reference counting? –  Konrad Rudolph Feb 8 '12 at 20:14 How
would a linked list help? Also I thought you said you knew how
to implement one yourself. How shared_ptr does reference
counting is implementation-defined so there's no answer to this
question. You can always look at the source for your
implementation. –  Seth Carnegie Feb 8 '12 at 20:14 First: there
is source code. Second: there is C++0x/11 so why TR1? Third: SO
is-a awesome community. C++ has-a awesome community. And GCC
wish they had it :) (half joking) –  sehe Fe