Question d’entretien chez FactSet

Explain how smart pointers work in C++.