An open API service indexing awesome lists of open source software.

https://github.com/levongh/unique_ptr

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 efficient — usually generating nearly the same assembly code as raw pointer access.
https://github.com/levongh/unique_ptr

cplusplus-11 cplusplus-14 unique-ptr

Last synced: about 2 months ago
JSON representation

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 efficient — usually generating nearly the same assembly code as raw pointer access.

Awesome Lists containing this project

README

        

class unique_pre are designed as standart unique_ptr
but I have not write constructor with std::auto_ptr becaue auto_ptr now is depricated
tests I have copyed from below mantioned link just for testing all constructors
http://ru.cppreference.com/w/cpp/memory/unique_ptr/unique_ptr