0
For each push_back() std::vector copies all the objects in a vector to a new one?
I was practicing with constructors and stuff and noticed when I pushed back one of the objects of my class. So is it better to store the references or is there any way to stop the copying of existing objects.
1 Réponse
+ 1
Okay. Thanks ¯\(◉‿◉)/¯