An abstract data type that simulates a pointer while providing additional features, such as automatic garbage collection or bounds checking
I have code like this: class RetInterface {...} class Ret1: public RetInterface {...} class AInterface { public: virtual boost::shared_ptr<RetInterface&…
c++ covariance smart-pointersMr. Lidström and I had an argument :) Mr. Lidström's claim is that a construct shared_ptr<Base&…
c++ destructor smart-pointersSome of my code still uses malloc instead of new. The reason is because I am afraid to use new …
c++ malloc new-operator smart-pointersThe question really fits in the title: I am curious to know what is the technical reason for this difference, …
c++ shared-ptr smart-pointers unique-ptrWith respect to smart pointers and new C++11/14 features, I am wondering what the best-practice return values and function parameter …
c++ c++11 smart-pointers const-correctnessI'm having fun with c++-ideas, and got a little stuck with this problem. I would like a LIFO class …
c++ c++11 smart-pointers poolI writing add-on for Internet Explorer(BHO) and I'm using CComPtr smart pointers. I wonder: When should I use CComPtr.…
c++ com smart-pointers bhoAs Scott Myers wrote, you can take advantage of a relaxation in C++'s type-system to declare clone() to return …
c++ clone smart-pointers covariant-return-typesI recall reading somewhere that using references to smart pointers can cause memory corruption. Is this simply because of using …
c++ smart-pointersLet me pose my question through an example. #include <memory> std::unique_ptr<int> get_it() { …
c++ pointers c++11 smart-pointers explicit