I have a vector<A*> v; A* ptr = nullptr; I wanna know what is the difference between ptr=v.at(0); and ptr=v[0]; thanks!
vector<A*> v; A* ptr = nullptr;
ptr=v.at(0);
ptr=v[0];
Aucun commentaire:
Enregistrer un commentaire