Share via


basic_string::pop_back

Erases the last element of the string.

void pop_back();

Remarks

This member function effectively calls erase(size() - 1) to erase the last element of the sequence, which must be non-empty.

Requirements

Header: <string>

Namespace: std

See Also

Reference

basic_string Class

<string>