std::basic_string::pop_back

From cppreference.com
< cpp‎ | string‎ | basic string
 
 
 
std::basic_string
 
void pop_back();
(since C++11)

Removes the last character from the string.

Equivalent to erase(size()-1, 1), except the behavior is undefined if the string is empty.

Contents

[edit] Parameters

(none)

[edit] Return value

(none)

[edit] Complexity

Constant.

[edit] Exceptions

Does not throw

[edit] See also

appends a character to the end
(public member function)
removes characters
(public member function)