Introduction

This lesson will introduce smart pointers in Modern C++.

We'll cover the following...

Introduction #

Smart pointers are one of the most important additions to C++ because they enable us to implement explicit memory management in C++. Beyond the deprecated std::auto_ptr, C++ offers three different smart pointers. They are defined in the header <memory>.

First, there is std::unique_ptr, which models the concept of exclusive ...