An abstract data type that simulates a pointer while providing additional features, such as automatic garbage collection or bounds checking
What is the best practice when returning a smart pointer, for example a boost::shared_ptr? Should I by standard …
c++ boost smart-pointersWhat are recommended uses of a std::unique_ptr as to specifically where, when, and how is it is best …
c++ c++11 smart-pointers unique-ptrI have a series of factories that return unique_ptr<Base>. Under the hood, though, they are providing …
c++ c++11 smart-pointers factory-pattern unique-ptrIf I understand correctly, a weak_ptr doesn't increment the reference count of the managed object, therefore it doesn't represent …
c++ shared-ptr smart-pointers unique-ptr weak-ptrI have a factory that returns a smart pointer. Regardless of what smart pointer I use, I can't get Google …
c++ unit-testing smart-pointers googlemockIn other words, how does the implementation keeps track of the count? Is there a map-like object maintained which is …
c++ memory-management memory-leaks smart-pointers shared-ptrI, and I think many others, have had great success using smart pointers to wrap up unsafe memory operations in …
c memory pointers c99 smart-pointersHaving a usual Base -> Derived hierarchy, like: class Fruit { ... }; class Pear : Fruit { ... }; class Tomato : Fruit { ... }; std::vector<…
c++ c++11 smart-pointersCan anyone explain the difference between the types mentioned above and some sample usage to clearly explain the difference between …
c++ com smart-pointersI've written a static factory method that returns a new Foobar object populated from another data object. I've recently been …
c++ smart-pointers unique-ptr ownership-semantics