Smart pointers
Improving Stability with Modern C++, Part 4 — Memory Management
by Ralph Kootker
From the article
When we started learning C++, we were all taught that every
newneeds a correspondingdelete. But sometimes we'd forget, or some code might throw an exception we weren't ready for, and then we'd leak memory. [...] With rare exceptions, C++ programmers should not have to writenewordeleteever again.

Add a Comment
Comments are closed.