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?
unique_ptr<list<Struct>>
list<unique_ptr<Struct>>
Aucun commentaire:
Enregistrer un commentaire