RamonUnch / GreenPad

Fork from roytam1 fork from original GreenPad
21 stars 0 forks source link

auto_pointer to unique_pointer #139

Closed RamonUnch closed 1 year ago

RamonUnch commented 1 year ago

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.