YoVDO

Weak Pointers in C++ - Understanding std::weak_ptr

Offered By: The Cherno via YouTube

Tags

C++ Courses Memory Management Courses Smart Pointers Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the concept of weak pointers in C++ and their implementation using std::weak_ptr in this 17-minute tutorial. Learn how shared pointers work, understand the use of raw pointers as weak references, and delve into the specifics of weak pointers. Discover why cyclical dependencies require weak pointers and examine a practical code review example. Gain valuable insights into memory management and smart pointer usage in C++ programming.

Syllabus

- Intro
- How shared pointers work
- Raw pointers as weak references
- Weak pointers
- Cyclical dependencies need weak pointers
- Code Review example
- Conclusion


Taught by

The Cherno

Related Courses

Heterogeneous Parallel Programming
University of Illinois at Urbana-Champaign via Coursera
Advanced Operating Systems
Georgia Institute of Technology via Udacity
計算機程式設計 (Computer Programming)
National Taiwan University via Coursera
Introduction to Operating Systems
Georgia Institute of Technology via Udacity
Android Performance
Google via Udacity