C++
1.1
Write a template for auto_ptr: Make sure to defineconstructor(s)/destructor – include copy constructor, overloadoperators * and ->, and assignment.
1.2 Instantiate the template above to point to a C++ string andinitialize with some instance of class string.
Answer