lundi 23 février 2015

Unique_ptr containers or unique_ptr elements

What would be the difference between a unique_ptr<list<Struct>> and a list<unique_ptr<Struct>>? Will list<unique_ptr<Struct>> result in the memory for the elements to be automatically managed as well?


Aucun commentaire:

Enregistrer un commentaire