Use pop_back() instead of pop_back_val() when the returned value is not used.