string pop back c++ code example Example: c++ list pop back void pop_back(); // desc: remove last element. complexity: constant