In this article we will discuss a Smart Pointer implementationstd::unique_ptr<> provided by c++11.
Main advantage of shared_ptr is that it automatically releases the associated memory when not used any more.
We should create shared_ptr objects carefully. Checkout below two cases,
In this article we will compare C++11 Smart Pointer Implementation shared_ptr and a normal pointer.
In this article we will discuss how to use custom deleter with std::shared_ptr.
In this article we will discuss a smart pointer implementation provide by c++11 i.e. shared_ptr.