An abstract data type that simulates a pointer while providing additional features, such as automatic garbage collection or bounds checking
What is a smart pointer and when should I use one?
c++ pointers c++11 smart-pointers c++-faqHi I asked a question today about How to insert different types of objects in the same vector array and …
c++ boost vector shared-ptr smart-pointersstd::unique_ptr has support for arrays, for instance: std::unique_ptr<int[]> p(new int[10]); but is …
c++ c++11 smart-pointers unique-ptrWhat is wrong with this program? #include <memory> #include <vector> int main() { std::vector<std::…
c++ stl c++11 smart-pointers unique-ptrI am so frustrated right now after several hours trying to find where shared_ptr is located. None of the …
c++ boost c++11 shared-ptr smart-pointersI'm having trouble understanding the usage of smart pointers as class members in C++11. I have read a lot about …
c++ c++11 shared-ptr smart-pointers unique-ptrWhat is the difference between the following set of pointers? When do you use each pointer in production code, if …
c++ boost smart-pointersLet's say I have a class with a method that returns a shared_ptr. What are the possible benefits and …
c++ return smart-pointersI have something like shared_ptr<Type> t(makeSomething(), mem_fun(&Type::deleteMe)) I now need to …
c++ boost smart-pointers shared-ptrWhat's the difference between: std::shared_ptr<int> p = std::shared_ptr<int>( new int ); and …
c++ c++11 shared-ptr smart-pointers