boost-smart-ptr
boost::smart_ptr and COW containers
I\'m using boost::scoped_array in a container that I want to make copy-on-write but I fear that scoped_array won\'t work. Which boost::smart_ptr conta开发者_运维技巧iner is closest to cow-safe scoped[详细]
2023-04-11 11:02 分类:问答sort order of boost::weak_ptr after expiring?
For boost::weak_ptr the 开发者_如何学Coperator< is defined, so that it can be used in associative containers.[详细]
2023-02-06 05:16 分类:问答How to use boost::smart_ptr in polymorphism?
Boost smart pointers can be used with polymorphism, but how do you cast the subclass back to the pointer?[详细]
2023-02-05 21:01 分类:问答Can boost::smart_ptr be used in polymorphism?
Can boost::smart_ptr such as scoped_ptr and s开发者_JS百科hared_ptr be used in polymorphism? class SomeClass[详细]
2023-02-05 20:48 分类:问答Tips on debugging SWIG-wrapped C++ code in Eclipse?
I have a large body of C++ code that I\'ve wrapped with SWIG and am calling it from Java.The C++ code makes liberal use of boost smart pointers.[详细]
2023-01-29 15:19 分类:问答Is there a generic "clean-up" class in boost?
I simply want a class that does this: class cleanup : boost::noncopyable { public: typedef boost::function0<void> function;[详细]
2023-01-29 05:49 分类:问答boost::shared_ptr and dynamic cast
I have a problem using a shared_ptr of a base class, I can\'t seem to be able to call the derived class\'s methods when dereferencing it. I believe code will be more verbose than me:[详细]
2023-01-26 18:01 分类:问答Convert boost::shared_ptr to actual class
How would someone do that? for example: Client* client = it->second; where it->second is a boost::shared_ptr to Client[详细]
2023-01-24 14:53 分类:问答how to convert a boost::weak_ptr to a boost::shared_ptr
i have a shared_ptr and a weak_ptr typedef boost::weak_ptr<classname> classnamePtr; typedef boost::shared_ptr<x> xPtr;[详细]
2023-01-19 05:49 分类:问答Reading a boost shared_ptr atomically
I have 2 threads t开发者_开发知识库hat access this one object. Thread A: updates a boost hared_ptr member[详细]
2023-01-15 06:16 分类:问答