AMD interview question

Describe the usage of C++ smart pointer.