Solved

To Initialize a Unique_ptr, You Can Use C++14's ________ Function

Question 13

Multiple Choice

To initialize a unique_ptr, you can use C++14's ________ function template, which allocates dynamic memory with operator new, then returns a unique_ptr to that memory. Prior to C++14, you'd pass the result of a new expression directly to unique_ptr's constructor.


A) create_unique
B) make_unique
C) get_unique
D) form_unique

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents