Skip to content
#

unique-ptr

Here are 11 public repositories matching this topic...

The class template unique_ptr<T> manages a pointer to an object of type T. You will usually construct an object of this type by calling new to create an object in the unique_ptr constructor. After calling the constructor, you can use the object very much like a raw pointer. The * and -> operators work exactly like you would expect, and are very …

  • Updated Dec 10, 2016
  • C++

A smart pointer to an object already owned by a unique_ptr. It doesn't own the object but it self zeroes when the object is deleted so that it can never dangle.

  • Updated Dec 16, 2024
  • C++

Improve this page

Add a description, image, and links to the unique-ptr topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the unique-ptr topic, visit your repo's landing page and select "manage topics."

Learn more