That is, remove the element at the zeroeth index and shift the values at consecutive index down, then return the removed value.
I can see erase method in vector class
particles.erase( particles.begin() );
but i don’t see any method as a counterpart of set()