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
- 
(1) appends
countcopies ofch. - 
(2) appends copies of characters of
sv, preserving order. - 
(3) appends characters from the range
[first, last), preserving order. 
Preconditions
[first, last) shall be a valid range.
Constraints
InputIt satisfies LegacyInputIterator.
Exception Safety
Strong guarantee.
Template Parameters
| Type | Description | 
|---|---|
  | 
The type of the iterators.  | 
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 | 
|---|---|
  | 
The size of the string after the operation would exceed   |