Smart Pointers
Hi everyone ✋ In the previous post we learned dynamic memory allocation ─ how new grabs memory from the heap and delete gives it back. We also met two scary dangers ─ the memory leak (forgetting to delete) and the dangling pointer (using memory after delete). At the very end, we got a little taste […]