🌈 搜索
📅  最后修改于: 2022-03-11 14:44:56.694000             🧑  作者: Mango
vector v; cout << v[v.size() - 1]; cout << *(v.end() - 1); cout << *v.rbegin(); // all three of them work