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_ptrno idea what that isuniqe_ptrUnique Pointershared_ptrShared Pointerweak_ptrno idea what that is either
To use them, make sure to include <memory> library.
shared_ptrvsunique_ptr?https://stackoverflow.com/questions/6876751/differences-between-unique-ptr-and-shared-ptr