public member function
<string>
std::string::pop_back
Delete last character
Parameters
noneReturn value
noneExample
|
|
Complexity
Unspecified, but generally constant.Iterator validity
Any iterators, pointers and references related to this object may be invalidated.Data races
The object is modified.Exception safety
If the string is empty, it causes undefined behavior.Otherwise, the function never throws exceptions (no-throw guarantee).
See also
- string::back
- Access last character (public member function)
- string::push_back
- Append character to string (public member function)
- string::erase
- Erase characters from string (public member function)