C++11 Smart Pointer – Part 5: shared_ptr, Binary trees and the problem of Cyclic References
Main advantage of shared_ptr is that it automatically releases the associated memory when not used any more. (more…)
C++11 Smart Pointer – Part 4: Create shared_ptr objects carefully
We should create shared_ptr objects carefully. Checkout below two cases, (more…)
C++11 Smart Pointer – Part 3: shared_ptr vs Pointer
In this article we will compare C++11 Smart Pointer Implementation shared_ptr and a normal pointer. (more…)
C++11 Smart Pointer – Part 2: shared_ptr and Custom Deletor
In this article we will discuss how to use custom deleter with std::shared_ptr. (more…)
C++11 Smart Pointer – Part 1: shared_ptr Tutorial and Examples
In this article we will discuss a smart pointer implementation provide by c++11 shared_ptr. (more…)