Alex Rivera | Logout

STL class for reference-counted pointers?

Asked 2009-03-17T06:46:20.867
12

This should be trivial but I can't seem to find it (unless no such class exists!)

What's the STL class (or set of classes) for smart pointers?

UPDATE

Thanks for the responses,
I must say I'm surprised there's no standard implementation.

I ended up using this one: http://archive.gamedev.net/reference/articles/article1060.asp

Edit
Report

1 Answer

1

For COM objects, use CComPtr<>.

answered 2009-03-17T06:52:32.583

Your Answer