std::basic_string<CharT,Traits,Allocator>::pop_back (3) - Linux Manuals
std::basic_string<CharT,Traits,Allocator>::pop_back: std::basic_string<CharT,Traits,Allocator>::pop_back
NAME
std::basic_string<CharT,Traits,Allocator>::pop_back - std::basic_string<CharT,Traits,Allocator>::pop_back
Synopsis
void pop_back(); (since C++11)
Removes the last character from the string.
Equivalent to erase(end()-1). The behavior is undefined if the string is empty.
Parameters
(none)
Return value
(none)
Complexity
Constant.
Exceptions
Throws nothing.
See also
push_back (public member function)
erase (public member function)