but isnt vector like an array.

when i delete a unit that it dies, i dont know if it would be in the end of the array.
If i am unlucky it will be at the start of the array = internally calls full copy constructor on all elements O(n) compexity .