Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Practical Guide to Mastering C++ Smart Pointers - Part 02
Practical Guide to Mastering C++ Smart Pointers - Part 02

Practical Guide to Mastering C++ Smart Pointers - Part 02: Mastering std::shared_ptr, std::make_shared, and std::weak_ptr in Modern C++

Arrow left icon
Profile Icon Umar Lone
Arrow right icon
€8.99 €82.99
Video Oct 2025 5hrs 56mins 1st Edition
Video
€8.99 €82.99
Subscription
Free Trial
Renews at €11.99p/m
Arrow left icon
Profile Icon Umar Lone
Arrow right icon
€8.99 €82.99
Video Oct 2025 5hrs 56mins 1st Edition
Video
€8.99 €82.99
Subscription
Free Trial
Renews at €11.99p/m
Video
€8.99 €82.99
Subscription
Free Trial
Renews at €11.99p/m

What do you get with a video?

Product feature icon Download this video in MP4 format
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Key benefits

  • Deep dive into shared_ptr, make_shared, and weak_ptr internals
  • Real-world smart pointer use cases across multithreading and resource management
  • In-depth analysis of control blocks, deleters, and cross-DLL ownership handling

Description

This course provides a rigorous, hands-on journey through the core and advanced capabilities of std::shared_ptr, std::make_shared, and std::weak_ptr. Starting with the fundamentals of shared ownership, you'll understand reference counting, copy semantics, and argument passing. This lays the groundwork for how and when to use shared pointers effectively in practical scenarios. From there, the course explores how to replace raw pointers with shared pointers, tackling common memory pitfalls such as uninitialized or dangling pointers and memory leaks. You’ll apply these concepts across real-world programming contexts like container management, polymorphism, and multithreading. Special attention is given to how smart pointers behave in systems programming environments, including file descriptors, DLL handles, and platform-specific resources. In the final modules, you’ll uncover the internals of custom deleters, control block memory layouts, and dynamic allocation strategies using std::make_shared. The course culminates with an in-depth study of std::weak_ptr, showing how to break circular dependencies and implement safe, temporary ownership models. Whether you're dealing with shared libraries, multithreaded code, or resource-bound systems, this course gives you the knowledge to handle C++ smart pointers with precision and confidence.

Who is this book for?

This course is intended for intermediate to advanced C++ developers who already have a solid understanding of pointers, references, and object-oriented programming. Familiarity with C++11 or later standards is required. Completion of Part 01 of this series is highly recommended, as this course builds directly on the foundational concepts established earlier.

What you will learn

  • Apply shared_ptr to manage dynamic memory safely
  • Replace raw pointers to eliminate memory issues
  • Implement custom deleters for complex resource cleanup
  • Analyze control block structure for memory optimization
  • Use weak_ptr to prevent cyclic ownership problems
  • Manage smart pointers across DLL and thread boundaries

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Last updated date : Oct 23, 2025
Publication date : Oct 23, 2025
Length: 5hrs 56mins
Edition : 1st
Language : English
ISBN-13 : 9781806690893
Category :
Languages :

What do you get with a video?

Product feature icon Download this video in MP4 format
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Last updated date : Oct 23, 2025
Publication date : Oct 23, 2025
Length: 5hrs 56mins
Edition : 1st
Language : English
ISBN-13 : 9781806690893
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€11.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€119.99 billed annually
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€169.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
Visually different images
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How can I download a video package for offline viewing? Chevron down icon Chevron up icon
  1. Login to your account at Packtpub.com.
  2. Click on "My Account" and then click on the "My Videos" tab to access your videos.
  3. Click on the "Download Now" link to start your video download.
How can I extract my video file? Chevron down icon Chevron up icon

All modern operating systems ship with ZIP file extraction built in. If you'd prefer to use a dedicated compression application, we've tested WinRAR / 7-Zip for Windows, Zipeg / iZip / UnRarX for Mac and 7-Zip / PeaZip for Linux. These applications support all extension files.

How can I get help and support around my video package? Chevron down icon Chevron up icon

If your video course doesn't give you what you were expecting, either because of functionality problems or because the content isn't up to scratch, please mail [email protected] with details of the problem. In addition, so that we can best provide the support you need, please include the following information for our support team.

  1. Video
  2. Format watched (HTML, MP4, streaming)
  3. Chapter or section that issue relates to (if relevant)
  4. System being played on
  5. Browser used (if relevant)
  6. Details of support
Why can’t I download my video package? Chevron down icon Chevron up icon

In the even that you are having issues downloading your video package then please follow these instructions:

  1. Disable all your browser plugins and extensions: Some security and download manager extensions can cause issues during the download.
  2. Download the video course using a different browser: We've tested downloads operate correctly in current versions of Chrome, Firefox, Internet Explorer, and Safari.
Modal Close icon
Modal Close icon