|  | Home | Libraries | People | FAQ | More | 
Replace a range with a range.
template< class InputIt> string& replace( const_iterator first, const_iterator last, InputIt first2, InputIt last2);
            Replaces the characters in the range {first, last)
            with those of {first2, last2).
          
            {first, last)is a valid range. {first2, last2)
            is a valid range.
          
Strong guarantee.
All references, pointers, or iterators referring to contained elements are invalidated. Any past-the-end iterators are also invalidated.
| Type | Description | 
|---|---|
| 
                       | The type of the iterators. | 
            InputItsatisfies InputIterator.
          
            *this
          
| Name | Description | 
|---|---|
| 
                       | An iterator referring to the first character to replace. | 
| 
                       | An iterator one past the end of the last character to replace. | 
| 
                       | An iterator referring to the first character to replace with. | 
| 
                       | An iterator one past the end of the last character to replace with. | 
| Type | Thrown On | 
|---|---|
| 
                       | 
                       |