c++ push multiple elements to vector

C++
v.insert(v.end(),5,1)
Source

Also in C++: