Packt

Practical Guide to Mastering C++ Smart Pointers - Part 01

kurs ist nicht verfĂĽgbar in Deutsch (Deutschland)

Wir ĂĽbersetzen es in weitere Sprachen.
Packt

Practical Guide to Mastering C++ Smart Pointers - Part 01

Bei Coursera Plus enthalten

Verschaffen Sie sich einen Einblick in ein Thema und lernen Sie die Grundlagen.
Stufe Mittel

Empfohlene Erfahrung

8 Stunden zu vervollständigen
Flexibler Zeitplan
In Ihrem eigenen Lerntempo lernen
Verschaffen Sie sich einen Einblick in ein Thema und lernen Sie die Grundlagen.
Stufe Mittel

Empfohlene Erfahrung

8 Stunden zu vervollständigen
Flexibler Zeitplan
In Ihrem eigenen Lerntempo lernen

Was Sie lernen werden

  • Master the use of smart pointers like std::unique_ptr and std::shared_ptr in C++.

  • Implement advanced memory management techniques, including custom deleters and the PIMPL idiom.

  • Learn to efficiently use smart pointers in containers and handle reallocation scenarios.

  • Apply smart pointers in practical projects such as game development and object pools.

Kompetenzen, die Sie erwerben

  • Kategorie: Software Design Patterns
  • Kategorie: Memory Management
  • Kategorie: Debugging
  • Kategorie: Object Oriented Programming (OOP)

Werkzeuge, die Sie lernen werden

  • Kategorie: C++ (Programming Language)
  • Kategorie: Objective-C (Programming Language)
  • Kategorie: C (Programming Language)

Wichtige Details

Zertifikat zur Vorlage

Zu Ihrem LinkedIn-Profil hinzufĂĽgen

KĂĽrzlich aktualisiert!

April 2026

Bewertungen

12 Aufgaben

Unterrichtet in Englisch

Erfahren Sie, wie Mitarbeiter fĂĽhrender Unternehmen gefragte Kompetenzen erwerben.

 Logos von Petrobras, TATA, Danone, Capgemini, P&G und L'Oreal

In diesem Kurs gibt es 11 Module

In this module, we will introduce the foundational concepts of smart pointers in C++. We will lay the groundwork for understanding the necessity of smart pointers and how they contribute to memory safety and resource management in C++ programming.

Das ist alles enthalten

1 Video

In this module, we will explore dynamic memory allocation techniques in C. From malloc() and calloc() to realloc(), you'll learn the basics of handling memory in C before diving deeper into C++ memory management.

Das ist alles enthalten

6 Videos1 Aufgabe

In this module, we will discuss memory allocation in C++ using the new and new[] operators. You will learn to allocate memory, manage arrays, and handle memory allocation failures effectively, setting the stage for smart pointer usage.

Das ist alles enthalten

8 Videos1 Aufgabe

In this module, we will introduce the concept of smart pointers in C++, explaining their significance and how they overcome common pitfalls associated with raw pointers, offering safer and more efficient memory management.

Das ist alles enthalten

2 Videos1 Aufgabe

In this module, we will dive into std::unique_ptr, showcasing its usage in managing dynamic memory. You will learn how to safely return and pass unique_ptrs, which helps ensure proper memory management and ownership semantics.

Das ist alles enthalten

4 Videos1 Aufgabe

In this module, we will focus on replacing raw pointers with smart pointers to eliminate common memory management errors. We will discuss strategies for preventing uninitialized pointers, dangling references, and the importance of exception safety.

Das ist alles enthalten

6 Videos1 Aufgabe

In this module, we will introduce custom deleters within smart pointers, providing more flexibility and control over memory management. We’ll cover how to define and use custom deleters to handle various memory management scenarios effectively.

Das ist alles enthalten

7 Videos1 Aufgabe

In this module, we will focus on std::make_unique and its role in simplifying memory management. You’ll learn how to use it to manage dynamic arrays safely and explore advanced techniques for efficient memory handling.

Das ist alles enthalten

4 Videos1 Aufgabe

In this module, we will introduce the PIMPL (Pointer to IMPLementation) idiom, which is a valuable technique for hiding implementation details and managing memory more effectively in C++.

Das ist alles enthalten

3 Videos1 Aufgabe

In this module, we will walk through a project that implements key concepts of smart pointers in C++. You’ll develop a game and an object pool, applying everything you’ve learned about memory management using smart pointers.

Das ist alles enthalten

4 Videos1 Aufgabe

In this module, we will cover advanced C++ concepts, including constructor behavior, observer patterns, and operator overloading. You’ll also learn about constexpr unique_ptr for compile-time memory management.

Das ist alles enthalten

6 Videos3 Aufgaben

Dozent

Packt - Course Instructors
Packt
1.749 Kurse493.498 Lernende

von

Packt

Mehr von Software Development entdecken

Warum entscheiden sich Menschen fĂĽr Coursera fĂĽr ihre Karriere?

Felipe M.

Lernender seit 2018
„Es ist eine großartige Erfahrung, in meinem eigenen Tempo zu lernen. Ich kann lernen, wenn ich Zeit und Nerven dazu habe.“

Jennifer J.

Lernender seit 2020
„Bei einem spannenden neuen Projekt konnte ich die neuen Kenntnisse und Kompetenzen aus den Kursen direkt bei der Arbeit anwenden.“

Larry W.

Lernender seit 2021
„Wenn mir Kurse zu Themen fehlen, die meine Universität nicht anbietet, ist Coursera mit die beste Alternative.“

Chaitanya A.

„Man lernt nicht nur, um bei der Arbeit besser zu werden. Es geht noch um viel mehr. Bei Coursera kann ich ohne Grenzen lernen.“
Coursera Plus

Neue Karrieremöglichkeiten mit Coursera Plus

Unbegrenzter Zugang zu 10,000+ Weltklasse-Kursen, praktischen Projekten und berufsqualifizierenden Zertifikatsprogrammen - alles in Ihrem Abonnement enthalten

Bringen Sie Ihre Karriere mit einem Online-Abschluss voran.

Erwerben Sie einen Abschluss von erstklassigen Universitäten – 100 % online

Schließen Sie sich mehr als 3.400 Unternehmen in aller Welt an, die sich für Coursera for Business entschieden haben.

Schulen Sie Ihre Mitarbeiter*innen, um sich in der digitalen Wirtschaft zu behaupten.

Häufig gestellte Fragen