📅  最后修改于: 2022-03-11 14:44:58.829000             🧑  作者: Mango
#include
#include
int main() {
std::vector v{1, 2, 3};
v.pop_back();
std::cout << v.size() << "\n";
std::cout << v.back() << "\n";
}
Output:
2
2