do I have a way to push_back a data sctructure into a vector without an outside copy? I mean: can I initialize the constructor of a class directly on vector im storing it?
avoiding doing this:
tks in advance for any help I getCode:vector<particle> Event; particle part(id,pz,spin); Event.push_back(part);
Edit: my obvious solution is to have an outside particle reseting but that defeats the portpuso of having multiple constructors