c++ get last element in vector

C++
std::v.back()
Source

Also in C++: