Standard C++ Library User Guide and Tutorial
Click on the banner to return to the user guide home page.
©Copyright 1996 Rogue Wave Software
Overview
The auto_ptr class wraps any pointer obtained through new and provides automatic deletion of
that pointer. The pointer wrapped by an auto_ptr object is deleted when the auto_ptr itself is
destroyed.
Include File
Include the memory header file to access the auto_ptr class.
#include <memory>