Pergunta de entrevista da empresa King

What is a smart pointer in C++?