Standard LibraryTypesstringMethodspop_backOn this pagepop_back Method of string. pop_back() -> void Removes the last element from the container. Throws an exception if the container is empty.