© 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 
Sao Paulo, São Paulo, Brazil

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


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

  • Run-Time Type Information (RTTI)


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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.