C++ unique_ptr member functions swap, release, reset
In this article, we are going to learn about the member functions of unique_ptr class template. These functions are very useful when we make use of the unique_ptr smart pointer in our programs and applications code. There are many types of functions associated with unique_ptr pointer. These are: Modifiers release() reset() swap() Observers 1.get() 2.get_deleter() …
C++ unique_ptr member functions swap, release, reset Read More »