Domanda di colloquio di Grass Valley

What problem does weak_ptr solve in C++?