Menu

[Solved]1 Please Explain Detail Scott Meyers S Point Use Weakptr Sharedptr Like Pointers Dangle 2p Q37271080

1. Please explain in detail Scott Meyers’s point: Use weak_ptrfor shared_ptr like pointers that can dangle.

2.Please explain in detail 3 different methods of passing smartpointer stu below to a function. Please explain thedifferences.

unique_ptr stu{ make_unique(“Mickey”) };

Expert Answer


Answer to 1. Please explain in detail Scott Meyers’s point: Use weak_ptr for shared_ptr like pointers that can dangle. 2.Please … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *