Weak Pointers
std::weak_ptr is the last component of the smart pointers family. Its purpose is limited compared to the other smart pointers, and we will examine why in this lesson.
We'll cover the following
Introduction
To be honest, std::weak_ptr is not a classic smart pointer, since it supports no transparent access to the resource; it only borrows the resource from an std::shared_ptr
.