Exploring Basic Concepts
C++ smart pointers: std::unique_ptr does everything which std::auto_ptr does, plus it also takes care of exclusive…