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

YouTube

Smart Pointers in C++ for Beginners

CodeBeauty via YouTube

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

Reviews

Start your review of Smart Pointers in C++ for Beginners

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.