Overview
Explore smart pointers in C++ through this comprehensive 25-minute tutorial video. Learn about the three types of smart pointers: unique_ptr, shared_ptr, and weak_ptr. Discover how these container wrappers for raw pointers automatically manage memory deallocation when going out of scope. Dive into unique pointers, understanding sharing vs. moving, and automatic memory deallocation. Examine shared pointers and their memory management capabilities. Compare weak pointers to shared pointers, gaining insights into their differences and use cases. Enhance your C++ programming skills with this beginner-friendly guide to smart pointers, complete with practical examples and clear explanations.
Syllabus
- Intro
- What are smart pointers in C++
- Unique pointer in C++
- Sharing vs moving a unique pointer in C++
- Unique pointer automatic memory deallocation
- Shared pointers in C++
- Shared pointer automatic memory deallocation
- Weak pointer vs shared pointer in C++
Taught by
CodeBeauty