Pregunta de entrevista de Bloomberg

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