This is the third post of several posts I wrote related to smart pointers:
- Smart pointers
- unique_ptr
- More on unique_ptr
- shared_ptr
- weak_ptr
Ok, here I am going to write about two other features that unique_ptr has that I did not mention in my last post.
unique_ptr
default behavior consists on take ownership of a pointer created with new
and that would normally be released with delete
.
Continue reading “C++: Smart pointers, part 3: More on unique_ptr”