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