samedi 13 mars 2021

Deletion of elements from std::vector

I want to delete all the elements from the std::vector

    for (Entity * cb : cbs)
    {
        delete cb;
    }

Is there a better way to do this?

Aucun commentaire:

Enregistrer un commentaire