Back
back()
Basically asks "Hey, whats the item at the end? i don't know the index but that's the last value??"
// playersList initially 55, 99, 44
cout << playersList.back(); // Prints 44
// playersList is still 55, 99, 44
Basically asks "Hey, whats the item at the end? i don't know the index but that's the last value??"
// playersList initially 55, 99, 44
cout << playersList.back(); // Prints 44
// playersList is still 55, 99, 44