mardi 14 avril 2020

Why has a release() in unique_ptr? What is the usefulness?

Why would someone have a unique_ptr and then later release it? Why not have a raw pointer instead in the first place?

Aucun commentaire:

Enregistrer un commentaire