is the following funct开发者_Python百科ion OK: void DoSomething(auto_ptr< … >& a)....
I\'ve been trying to use smart pointers to upgrade an existing app, and I\'m trying to overcome a puzzle. In my app I have a cache of objects, for example lets call them books. Now this cache of books
Will auto_ptr be deprecated in incoming C++ standard? Should unique_ptr be used for ownership transfer instead of shared_ptr?
I just saw this nice copy-on-write pointer implementation. It looks pretty generic and useful, so my question is: Is such a class c开发者_开发百科ontained in any of the C++ toolkits (boost, loki, etc.
I have a situation where I would like to compare an object encapsulated by a shared_ptr with the same type of object开发者_开发百科 created on a stack. Currently, I\'m getting the raw pointer and dere
I\'m thinking of using boost::weak_ptr to implement a pool of objects such that they will get reaped when nobody is using one of the objects.My concern, though, is that it\'s a multi-threaded environm
I have few questions on the best practices of using shared_ptr. Question 1 Is copying shared_ptr cheap? Or do I need to pass it as reference to my own helper functions and return as value? Something
What are the advantages and disadvantages of using auto pointers (auto_ptr), compared to ordinary pointers? I\'ve heard it d开发者_JAVA技巧oes automatic releasing of memory but how come it is not used
I am using boost::signals2 under Red Hat Enterprise Linux 5.3. My signal creates an object copy and sends it\'s pointer to subscribers.This was implemented for thread safety to prevent the wor开发者_
I have a huge tree where keys insides nodes are indices into a big hash_map v, whe开发者_开发百科re v[key] is a (big) record associated with that key (includes how many nodes in the tree have this key