Packt

C++ Memory Management

Développez des compétences très recherchées grâce à un abonnement d'un an à Coursera Plus, désormais à 239 $. Profitez-en dès maintenant.

Ce cours n'est pas disponible en Français (France)

Nous sommes actuellement en train de le traduire dans plus de langues.
Packt

C++ Memory Management

Inclus avec Coursera PlusEn savoir plus

Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Intermédiaire

Expérience recommandée

2 semaines à compléter
à 10 heures par semaine
Planning flexible
Apprenez à votre propre rythme
Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Intermédiaire

Expérience recommandée

2 semaines à compléter
à 10 heures par semaine
Planning flexible
Apprenez à votre propre rythme

Ce que vous apprendrez

  • Master the C++ object model to write more efficient and maintainable code

  • Automate resource management to reduce manual errors and improve safety

  • Customize memory allocation operators to optimize performance for specific applications

Compétences que vous acquerrez

  • Catégorie : Memory Management
  • Catégorie : Computer Programming
  • Catégorie : Performance Tuning
  • Catégorie : Debugging
  • Catégorie : Real Time Data
  • Catégorie : Data Structures

Outils que vous découvrirez

  • Catégorie : C (Programming Language)
  • Catégorie : C and C++
  • Catégorie : C++ (Programming Language)

Détails à connaître

Certificat partageable

Ajouter à votre profil LinkedIn

Récemment mis à jour !

novembre 2026

Évaluations

17 devoirs

Enseigné en Anglais

Il y a 16 modules dans ce cours

This module delves into the core concepts of C++ memory management, focusing on how objects, pointers, and references are used to control and manipulate memory. Learners will gain an understanding of object lifetime, memory layout, and the behavior of copy and move operations. The content prepares students to write efficient and safe C++ code by exploring low-level memory mechanics.

Inclus

1 vidéo7 lectures1 devoir

This module explores common pitfalls in C++ programming, including undefined behavior, implementation-defined behavior, and unsafe type conversions. Learners will gain a deeper understanding of how to write reliable and portable code by avoiding risky practices. The content emphasizes the importance of careful memory management and type safety.

Inclus

1 vidéo4 lectures1 devoir

This module delves into the mechanics of type conversion in C++ through casts and cv-qualifications. Learners will gain an understanding of how to safely manage type integrity and control memory access. The focus is on practical applications of casting mechanisms and their implications in program behavior.

Inclus

1 vidéo3 lectures1 devoir

This module covers the role of destructors in C++ for managing resources and ensuring clean code. It explains the RAII idiom, discusses best practices for object lifetime and memory management, and highlights the importance of avoiding exceptions in destructors.

Inclus

1 vidéo5 lectures1 devoir

This module covers the fundamentals of using C++ standard smart pointers, such as std::unique_ptr and std::shared_ptr, to manage resources safely and efficiently. Learners will gain an understanding of ownership semantics, memory management, and best practices for using these tools in modern C++ programming. The module also explores scenarios where raw pointers are still appropriate.

Inclus

1 vidéo8 lectures1 devoir

This module delves into the implementation and usage of smart pointers in C++, focusing on ownership semantics, memory management, and the creation of custom smart pointer types. Learners will gain a deep understanding of how to safely manage resources and avoid common pitfalls in C++ programming. The content also covers advanced topics like type traits and performance considerations.

Inclus

1 vidéo6 lectures1 devoir

This module explores advanced techniques for custom memory allocation in C++, focusing on the use and customization of new and delete operators. Learners will gain a deep understanding of how to control memory management, including non-throwing versions and placement new. The module also introduces C++20's destroying delete feature for more efficient object destruction.

Inclus

1 vidéo6 lectures1 devoir

This module guides learners through the process of building a basic memory leak detector in C++. It covers operator overloading, thread safety, and memory tracking techniques, providing hands-on experience with low-level programming concepts.

Inclus

1 vidéo6 lectures1 devoir

This module delves into advanced C++ memory management techniques, including placement new, nothrow new, and custom new handlers. Learners will explore how to handle out-of-memory scenarios and manage exotic memory types in standard C++ programs. The module provides practical examples and code implementations to reinforce understanding of atypical allocation mechanisms.

Inclus

1 vidéo6 lectures1 devoir

This module delves into advanced memory management techniques, focusing on arena-based allocation and size-based algorithms. Learners will gain practical insights into optimizing performance and reducing memory fragmentation in software systems. Through real-world examples and testing, students will understand how to implement and evaluate specialized memory strategies.

Inclus

1 vidéo7 lectures1 devoir

This module explores the concept of deferred reclamation in C++, focusing on how to delay object destruction to improve performance and manage memory more efficiently. It covers different implementations, including reclamation without finalization, with finalization at program end, and on-demand reclamation at the end of a scope. Learners will gain a clear understanding of how to implement and use deferred reclamation techniques in real-world programs.

Inclus

1 vidéo5 lectures1 devoir

This module explores the implementation of generic containers in C++ with a focus on explicit memory management. Learners will gain skills in designing efficient and safe container structures, applying standard memory algorithms, and understanding exception safety in dynamic data structures.

Inclus

1 vidéo9 lectures1 devoir

This module explores how to implement generic containers with implicit memory management, focusing on the benefits and techniques for simplifying memory handling in Vector<T> and ForwardList<T>. Learners will understand how to apply these strategies to enhance code efficiency and maintainability.

Inclus

1 vidéo3 lectures1 devoir

This module explores the implementation of allocator-aware containers in C++, focusing on memory management techniques, practical applications, and advanced strategies for optimizing container behavior. Learners will gain insights into how allocators interact with containers and how to manage memory efficiently in real-world coding scenarios.

Inclus

1 vidéo9 lectures1 devoir

This module delves into advanced topics in C++ memory management, focusing on techniques such as object lifetime control, trivial relocation, and type-aware allocation. Learners will gain insights into optimizing resource usage and handling complex memory scenarios without relying on traditional constructors.

Inclus

1 vidéo4 lectures1 devoir

This module introduces essential C++ concepts such as struct, class, size_t, and undefined behavior, along with the use of standard library algorithms and the decltype operator. Learners will gain a deeper understanding of type systems, memory management, and design patterns to improve code reliability and performance.

Inclus

1 vidéo4 lectures2 devoirs

Instructeur

Packt - Course Instructors
Packt
2 690 Cours785 579 apprenants

Offert par

Packt

Qu’est-ce qui vous amène sur Coursera aujourd’hui ?

Pour quelles raisons les étudiants sur Coursera nous choisissent-ils pour leur carrière ?

Felipe M.

Étudiant(e) depuis 2018
’Pouvoir suivre des cours à mon rythme à été une expérience extraordinaire. Je peux apprendre chaque fois que mon emploi du temps me le permet et en fonction de mon humeur.’

Jennifer J.

Étudiant(e) depuis 2020
’J'ai directement appliqué les concepts et les compétences que j'ai appris de mes cours à un nouveau projet passionnant au travail.’

Larry W.

Étudiant(e) depuis 2021
’Lorsque j'ai besoin de cours sur des sujets que mon université ne propose pas, Coursera est l'un des meilleurs endroits où se rendre.’

Chaitanya A.

’Apprendre, ce n'est pas seulement s'améliorer dans son travail : c'est bien plus que cela. Coursera me permet d'apprendre sans limites.’

Foire Aux Questions