Question: 1. What is smart pointer, why will the smart pointer be invented? (10 pts.) 2. There're two kinds of smart pointers: unique ptr' and shared_ptr'.

 1. What is smart pointer, why will the smart pointer be

1. What is smart pointer, why will the smart pointer be invented? (10 pts.) 2. There're two kinds of smart pointers: unique ptr' and shared_ptr'. Please do a search online to discuss the difference of these two smart pointers. (20 pts.) 3. What header file is required when you try to use smart pointers? (10 pts.) 4. Discuss the difference among the containers: vector', forward list' and 'list' ifrom the perspective of data structure (20 pts.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!