Which of the following statements about a unique_ptr object is true?
a. A unique_ptr is a “smart pointer” for managing dynamically allocated memory.
b. When a unique_ptr goes out of scope, its destructor automatically returns the managed memory to the free store.
c. You must explicitly delete the memory that’s managed by a unique_ptr before the object goes out of scope.
d. All of the above.
c. You must explicitly delete the memory that’s managed by a unique_ptr before the object goes out of scope.
Computer Science & Information Technology
You might also like to view...
A template is a customized letter that contains the name and address of the individual to whom the letter is sent
Indicate whether the statement is true or false
Computer Science & Information Technology
What are four methods for adding actions to a macro with the Macro Designer?
What will be an ideal response?
Computer Science & Information Technology