jeudi 28 avril 2016

C++ vector: get item by index and at()

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!

Aucun commentaire:

Enregistrer un commentaire