Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the world of C++ smart pointers in this comprehensive conference talk. Delve into the usage and secrets of shared_ptr and unique_ptr, the key smart pointers in Modern C++. Learn when to use these smart pointers and gain valuable insights into their hidden costs. Discover the intricacies of shared pointers, weak pointers, and the makeShare function. Investigate whether smart pointers are suitable for various scenarios and understand dynamic pointer casting. Address common problems and explore how smart pointers work under the hood. Analyze performance considerations through demonstrations and measurements. Dive into unique pointers, uncovering tricks, limitations, and ownership concepts. Gain a deeper understanding of move semantics and their role in smart pointer implementation. Enhance your C++ programming skills with this in-depth exploration of smart pointers and their practical applications.
Syllabus
Introduction
Smart Pointers
Shared Pointers Details
Weak Pointers
MakeShare
Can we use smart pointers
Dynamic pointer cast
Common problem
How it works
Performance
Demonstration
Measurements
Unique pointers
Unique pointers trick
Unique pointers limitations
Unique pointers ownership
Move semantics
Taught by
NDC Conferences