I have read that I need to define a deleter for a unique_ptr if I want to use push_back from std::vector<std::unique_ptr<T>>. Is that true? If yes what's the correct syntax to do that?
unique_ptr
push_back
std::vector<std::unique_ptr<T>>
Thank you for your answers
Aucun commentaire:
Enregistrer un commentaire