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:
Verified
Q8: Select the false statement regarding exceptions.
A) The
Q9: The try block cannot:
A) Enclose the code
Q10: Once an exception is thrown, when can
Q11: Select the false statement. A rethrown exception:
A)
Q12: Catch blocks are not required to contain:
A)
Q14: Exception handling may allow a program to:
A)
Q15: An advantage of using inheritance with exceptions
Q16: Select the false statement. The new operator:
A)
Q17: Which of the following statements is false?
A)
Q18: Select the false statement. Depending on the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents