Pergunta de entrevista da empresa Barclays

What's the purpose of a smart pointer?