Standard C++ Library User Guide and Tutorial

// remove trailing values
aList.erase(where, aList.end());
}