rename aptr to uptr as a ref to unique pointer.
we can use .release() instead of std::move().
Add the reset method to change the object pointed to.
remove the copy operations. (NOCOPY(uptr);)
use reset where possible, avoids the creation of an intermediate aptr.
rename aptr to uptr as a ref to unique pointer. we can use .release() instead of std::move(). Add the reset method to change the object pointed to. remove the copy operations. (
NOCOPY(uptr)
;)use reset where possible, avoids the creation of an intermediate aptr.