I\'m trying to dynamically add elements to a vector that is contained within a map, to store multiple arrays of \"Particle\" objects that are mapped to different ids. I\'m new t
There is only one vector per id; this is what you are referring to with particleMap[currentId]. Then you just continue with the expression as if you were writing myVector.push_back(p).