Question: SELECT ALL statements which are true of std::unique _ ptr and std::make _ unique std::make _ unique can be used with automatic type deduction std::make
SELECT ALL statements which are true of std::uniqueptr and std::makeunique
std::makeunique can be used with automatic type deduction
std::makeunique is preferred over using std::uniqueptr and new
std::uniqueptr should not be managed by multiple classes
std::uniqueptr is the best choice for implementing dynamic arrays
Copy assignment of a std::uniqueptr will lead to crashes.
std::uniqueptr has better exception safety than std::makeunique
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
