An abstract data type that simulates a pointer while providing additional features, such as automatic garbage collection or bounds checking
I often need to deal with dynamically-allocated arrays in C++, and hence rely on Boost for scoped_array, shared_array, …
c++11 memory-management boost wrapper smart-pointersI would like to implement a simple reference counting using smart pointers. The variable pointer represents pointer to stored object, …
c++ templates smart-pointers reference-countingI have read that weak_pointers can be used to break cyclic references. Consider the following example of a cyclic …
c++ smart-pointers c++03I have a threaded class from which I would like to occasionally acquire a pointer an instance variable. I would …
c++ thread-safety mutex smart-pointers raiiRecently I started at C++11. I studied about weak_ptr. There exist two ways of getting raw pointer. lock() function …
c++ c++11 shared-ptr smart-pointers weak-ptrI need to create pointers of instances of a class, and the program do not know at compilation time how …
c++ pointers vector smart-pointers delete-operatorI came to know that smart pointer is used for resource management and supports RAII. But what are the corner …
c++ smart-pointersI read the following article by Antony Williams and as I understood in addition to the atomic shared count in …
c++ c++11 concurrency atomic smart-pointersI have heard that auto pointers own their object whereas shared pointers can have many objects pointing to them. Why …
c++ shared-ptr smart-pointers auto-ptrCan any one explain, What is the use of CComPtr over CComQIPtr in COM? CComPtr<ISampleInterface> Sample1; CComQIPtr&…
visual-c++ com atl smart-pointers