Domanda di colloquio di Bloomberg

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