how to pop last element of vector c++, with value code example Example: pop_back Removes the last element of the vector