Barclays interview question

How are smart pointers implemented, what is RAII