Pergunta de entrevista da empresa Bloomberg

How would you implement C++'s auto pointer?