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

YouTube

C++ Smart Pointers - Usage and Secrets

NDC Conferences via YouTube

Overview

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

Reviews

Start your review of C++ Smart Pointers - Usage and Secrets

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.