📜  在向量c ++代码示例中从前面删除

📅  最后修改于: 2022-03-11 14:44:55.796000             🧑  作者: Mango

代码示例1
// Deleting first element
vector_name.erase(vector_name.begin());

// Deleting xth element from start
vector_name.erase(vector_name.begin()+(x-1));

// Deleting from the last
vector_name.pop_back();