An abstract data type that simulates a pointer while providing additional features, such as automatic garbage collection or bounds checking
Does C++11 have something equivalent to boost::intrusive_ptr? My problem is that I have a C-style interface over my …
c++ c++11 boost shared-ptr smart-pointersWhen passing objects into functions, do the same rules apply to smart pointers as to other objects that contain dynamic …
c++ c++11 parameter-passing smart-pointers unique-ptrI am learning about smart pointers (std::auto_ptr) and just read here and here that smart pointers (std::auto_…
c++ pointers std smart-pointers auto-ptrJust wanted opinions on a design question. If you have a C++ class than owns other objects, would you use …
c++ oop smart-pointersI have simple base and derived class that I want both have shared_from_this(). This simple solution: class foo : …
c++ boost smart-pointersConsider the following code. using boost::shared_ptr; struct B; struct A{ ~A() { std::cout << "~A" << …
c++ boost memory-leaks shared-ptr smart-pointersWith the advent of std::unique_ptr, the blemished std::auto_ptr can finally be put to rest. So for …
c++ memory c++11 smart-pointersSince C++11, because of several reasons, developers tend to use smart pointer classes for dynamic lifetime objects. And with those …
c++ c++11 shared-ptr smart-pointers make-sharedI have a question about std::unique_ptr and std::shared_ptr. I know there are loads of questions about …
c++ c++11 shared-ptr smart-pointers unique-ptrI used to write code like this: class P {}; class Q: public P {}; class A { // takes ownership A(P* p): …
c++ smart-pointers c++11