Suppose a class Object
exists.
I now have vector<Object> vec
If I now do in some part of my code:
for(auto p : vec){
//something with p
}
Does this make a new object p for every object that actually in the iterator? Or does it actually just go through the actual objects in the list? I'm asking because I've also seen auto& p