📜  c++ vector pop_back - C++ 代码示例

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

代码示例1
#include  
using namespace std;
int main(){
    vector v1{10, 20, 30, 40, 50};
    
    //removing elemenets
    v1.pop_back();  //removes 50
    v1.pop_back();  //removes 40

}