C++ Smart Pointers
· ☕ 6 min read · 🦂 k4i
Smart pointer is a practice of RAII (Resource Acquisition is Initialization), we use a smart pointer to manage memory allocated on the heap. (here the “resource” is the allocated heap memory)
Smart pointer is a practice of RAII (Resource Acquisition is Initialization), we use a smart pointer to manage memory allocated on the heap. (here the “resource” is the allocated heap memory)