Weak_ptr
Jan 6, 2023 · 2 min read · std::weak_ptr is a smart pointer that holds a non-owning ("weak") reference to an object that is managed by std::shared_ptr. It is used to break reference cycles and to void unnecessary memory retention Reference count A std::weak_ptr does not increa...
Join discussion


