public member function
<string>
std::basic_string::pop_backDelete last character
Erases the last character of the basic_string, effectively reducing its length by one.1
2
3
4
5
6
7
8
9
10
11
// string::pop_back
#include <iostream>
#include <string>
int main ()
{
std::string str ("hello world!");
str.pop_back();
std::cout << str << '\n';
return 0;
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4