© Roger Villela 2020
R. VillelaIntroducing Mechanisms and APIs for Memory Management https://doi.org/10.1007/978-1-4842-5416-5_3

3. Working with Smart Pointers: unique_ptr

Roger Villela1 
(1)
Sao Paulo, São Paulo, Brazil
 

In this chapter, you’ll learn about memory management using smart pointers in the C++ programming language.

Acronyms

This chapter uses the following acronyms:
  • Microsoft Foundation Classes (MFC)

  • Run-Time Type Information (RTTI)

Pointers

Chapter 2 gave you an overview of composite type pointers, introducing some concepts and showing a practical use of a composite type pointer.

In this chapter, you will be working with raw pointers and will start working with smart pointers. Specifically, you will learn about unique_ptr, and in Chapter 4 you ...

Get Introducing Mechanisms and APIs for Memory Management: Using Windows OS Native Runtime APIs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.