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.
- Host: GitHub
- URL: https://github.com/levongh/unique_ptr
- Owner: levongh
- Created: 2016-12-10T22:27:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-10T22:31:42.000Z (over 8 years ago)
- Last Synced: 2025-02-09T09:12:31.245Z (4 months ago)
- Topics: cplusplus-11, cplusplus-14, unique-ptr
- Language: C++
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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