Cover image for C++ Memory Management

C++ Memory Management

Write leaner and safer C++ code using proven memory-management techniques

PR

Created by Patrice Roy

Explore how to make your C++ programs safer and more efficient by mastering memory management. Learn techniques that help you adapt to the unique demands of embedded, real-time, and performance-critical systems. Gain the confidence to write code that is both reliable and optimized for your specific application needs.

Packt | Mar 2025 | 442 min

Start Trial
LevelExpert
CategoriesSoftware Engineering and Architecture, Hardware and Embedded Systems Programming, C/C++

What You Will Learn

You will start by exploring how C++ manages object lifetimes and memory organization. Step by step, you will practice using allocation operators, smart pointers, and custom allocators. Real-world examples and targeted exercises help you apply these concepts to different application domains, so you can see the impact of your changes on program safety and performance.

Key Features

  • Understand and control C++ object lifetimes and memory allocation mechanisms
  • Customize memory management for embedded, real-time, and game development scenarios
  • Build safer, faster programs by applying modern C++ memory management techniques

Target Audience

This content is designed for C++ developers who want to deepen their understanding of memory management. If you are working in areas like embedded systems, games, or real-time applications, or if you simply want to write more efficient and safer code, you will find practical strategies and tools here. Some experience with C++ and basic programming concepts is recommended.

Related courses