Pergunta de entrevista da empresa Grass Valley

What problem does weak_ptr solve in C++?