string::append
Append characters to the string.
Synopsis
string&
append(
std::size_t count,
char ch); (1)
string&
append(
string_view sv); (2)
template<
class InputIt>
string&
append(
InputIt first,
InputIt last); (3)
Description
Appends count
copies of ch
to the end of the string.
Exception Safety
Strong guarantee.
Template Parameters
Type | Description |
---|---|
|
The type of the iterators. |
Return Value
*this
Return Value
*this
Return Value
*this
Parameters
Name | Description |
---|---|
|
The number of characters to append. |
|
The character to append. |
|
The |
|
An iterator representing the first character to append. |
|
An iterator one past the last character to append. |
Exceptions
Type | Thrown On |
---|---|
|
|