Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Smart Pointers in C++ - Memory Management, Pitfalls, and Best Practices

cpponsea via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore the complexities and pitfalls of C++ smart pointers in this comprehensive 53-minute conference talk from C++ on Sea 2025. Dive deep into modern C++ memory management as you learn about the power and hidden dangers of smart pointers, from unique_ptr ownership issues to shared_ptr reference cycles that can trap even experienced developers. Begin with a review of raw pointers and their continued relevance before examining unique_ptr, shared_ptr, and weak_ptr in detail, understanding how they work, when to use them, and how they can lead to memory leaks, undefined behavior, or performance problems. Discover aliasing surprises, control block overhead, exception safety risks, and lesser-known optimizations introduced in C++20 and beyond. Gain practical insights through real-world mistakes, debugging horror stories, and solutions using Address Sanitizer, static analysis tools, and modern C++ techniques. Learn from Khushboo Verma, a software engineer at Appwrite with extensive experience in C++ development at Microsoft and Adobe, as she shares her expertise in cloud computing, backend engineering, and distributed systems to help you write memory-safe, performant code while avoiding common smart pointer traps.

Syllabus

Smart Pointers in C++ - Khushboo Verma - C++ on Sea 2025

Taught by

cpponsea

Reviews

Start your review of Smart Pointers in C++ - Memory Management, Pitfalls, and Best Practices

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.