std::basic_string<CharT,Traits,Allocator>::pop_back
From cppreference.com
< cpp | string | basic string
void pop_back(); |
(since C++11) (until C++20) |
|
constexpr void pop_back(); |
(since C++20) | |
Removes the last character from the string.
Equivalent to erase(end()-1). The behavior is undefined if the string is empty.
Contents |
Parameters
(none)
Return value
(none)
Complexity
Constant.
Exceptions
Throws nothing.
See also
appends a character to the end (public member function) | |
removes characters (public member function) |