1// Inserting at start
2vector_name.insert(vector_name.begin(), element_to_be_inserted);
3
4// Inserting after xth element
5vector_name.insert(vector_name.begin()+(x-1), element_to_be_inserted);
6
7// Inserting at last
8vector_name.push_back(element_to_be_inserted);