Which statement about class unique_ptr (of the new C++ standard) and dynamic memory allocation is false?

a. An object of class unique_ptr maintains a pointer to dynamically allocated memory.
b. When a unique_ptr object destructor is called (for example, when a unique_ptr object goes out of scope), it
performs a destroy operation on its pointer data member.
c. Class template unique_ptr provides overloaded operators * and -> so that a unique_ptr object can be used just as a
regular pointer variable is.
d. Class unique_ptr is part of the new C++ standard and it replaces the deprecated auto_ptr class.

b. When a unique_ptr object destructor is called (for example, when a unique_ptr object goes out of scope), it
performs a destroy operation on its pointer data member.

Computer Science & Information Technology

You might also like to view...

________ are image files stored on your computer that can be uploaded for use in the document

Fill in the blank(s) with correct word

Computer Science & Information Technology

A JavaFX Button’s event handler receives a(n) ________, which indicates that the Button was clicked.

a. ButtonEvent b. ObjectEvent c. ControlEvent d. ActionEvent

Computer Science & Information Technology