Skip to content
Snippets Groups Projects
Cristian C Lalescu's avatar
Cristian Lalescu authored
when using unique_ptr for arrays, they are cleaned up by calling
`delete[] bla.release()`.
At least, cppreference says that the release method
"returns a pointer to the managed object and releases the ownership ".
https://en.cppreference.com/w/cpp/memory/unique_ptr
05c44eca
History
Name Last commit Last update