How to set value position in vector?

How can I set value position in vector without overwriting an value? for example,

I have a vector with a, b, c, d in it. And I want to add o at position 2. Is there any function that does this? To just replace all values from 2 to v.end for +1 place and to set "o" at pos 2. Thanks :)
Is this insert() what you're looking for?

http://www.cplusplus.com/reference/vector/vector/insert/
Topic archived. No new replies allowed.