Today I was asked about smart pointers in C++, and I can’t find anywhere useful information about it..
Please, can someone tell:
What is smart pointers?
When do you need it?
Do you have any example where smart pointers is actually useful?
Thank you!
Primarily, smart pointers help you to:
A good example of where smart pointers are useful: