I\'m trying to implement a safe version of std::shared_ptr, called \"safe_ptr\" which guarantees \"non-nullness\".
I need to create a function that returns an allocated shared_ptr variable. is this the correct way? typedef boost::shared_ptr<std::vector<char> > sharePtr;
I am implementing a smart pointer class using generics and I wanted to force users of this class to properly construct the smart pointer using syntax such as
I have a function like below void functionA(unordered_map<string, classA*>* arg1); I need to pass in
I have a design where objects are simultaneously owned by 2 queues. Occasionally the queues themselves may be deleted. In this case, all objects in the queue must be deleted and removed from the other
I want a safe C++ pointer container similar to boost\'s scoped_ptr, but with value-like copy semantics.I intend to use this for a very-rarely used element of very-heavily used class in the innermost l
I have a clone_ptr implementation, as was shown in this question and I have a problem where I need to create a clone_ptr from a ra开发者_如何学Gow pointer returned from a function.
I am a bit new to templates in C++ so forgive me if this question is confusing or stupid, I just have a problem where I want to implement a clone smart pointer so I don\'t have to create copy construc
I have this situation where the library I use has many functions that return raw pointers to objects, how could I now use boost smart pointers in my program using this library and using smart pointers
my base class need to expose a method that for some derived classes would return a smart pointer to dynamically allocated array, and for some other derived classes would return a pointer/reference to