c++ how to add something at the start of a vector
#include <iostream>
#include <vector>
int main() {
std::vector<int> myVector = {2, 3, 4, 5};
// Add element at the start of the vector
myVector.insert(myVector.begin(), 1);
// Display the updated vector
for (int element : myVector) {
std::cout << element << " ";
}
return 0;
}