📅  最后修改于: 2022-03-11 14:44:48.795000             🧑  作者: Mango
代码示例1
std::vector x{1,2,3,4,5,6};
for (auto iter = x.begin(); iter != std::prev(x.end()); ++iter){
std::cout << *iter << std::endl;
}