Smart Pointer
Link: https://www.geeksforgeeks.org/smart-pointers-cpp/
Types of Smart Pointers:
C++ libraries provide implementation of smart pointers in the following types:
auto_ptr
no idea what that isuniqe_ptr
Unique Pointershared_ptr
Shared Pointerweak_ptr
no idea what that is either
To use them, make sure to include <memory>
library.
shared_ptr
vsunique_ptr
?https://stackoverflow.com/questions/6876751/differences-between-unique-ptr-and-shared-ptr