![]() |
![]()
| ![]() |
![]()
NAMEstd::basic_string::push_back - std::basic_string::push_back Synopsis void push_back( CharT ch ); (until C++20)
Parametersch - the character to append Return value(none) ComplexityAmortized constant. Exceptions If an exception is thrown for any reason, this function has no
effect (strong
Example// Run this code
Output: before="Short string"
See also pop_back removes the last character
|