public member function
<string>
std::basic_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 basic_string is empty, it causes undefined behavior.Otherwise, the function never throws exceptions (no-throw guarantee).
See also
- basic_string::back
- Access last character (public member function)
- basic_string::push_back
- Append character to string (public member function)
- basic_string::erase
- Erase characters from string (public member function)