📌  相关文章
📜  从向量 C++ 代码示例中删除第一个元素

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

代码示例4
// 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();