Morgan Stanley interview question

What is smart pointer, how is it implemented.