Insert multiple values into vector
问题 I have a std::vector<T> variable. I also have two variables of type T, the first of which represents the value in the vector after which I am to insert, while the second represents the value to insert. So lets say I have this container: 1,2,1,1,2,2 And the two values are 2 and 3 with respect to their definitions above. Then I wish to write a function which will update the container to instead contain: 1,2,3,1,1,2,3,2,3 I am using c++98 and boost. What std or boost functions might I use to