void push_back( CharT ch ); |
Appends the given character ch
to the end of the string.
ch | - | the character to append |
(none).
Amortized constant.
If an exception is thrown for any reason, this function has no effect (strong exception guarantee). (since C++11).
If the operation would result in size() > max_size()
, throws std::length_error
.
(C++11) | removes the last character (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/string/basic_string/push_back