mardi 23 mars 2021

What are best use cases of shared_ptr, unique_ptr and weak_ptr?

While it is easy to learn about shared_ptr, unique_ptr and weak_ptr by knowing what are they, it seems to be very difficult for me to understand in what circumstances they proved to be useful.

Can anyone give one or two concrete example of three of them?

Aucun commentaire:

Enregistrer un commentaire