Replace container elements.
template< class FwdIt> iterator replace( iterator from, iterator to, FwdIt first, FwdIt last);
This function replaces a range of elements at a range of container positions. The behavior is undefined if any elements of the range belong to the container.
Iterator to position where the first inserted element
Name |
Description |
---|---|
|
Iterator to first element to be replaced |
|
Iterator to one past last element to be replaced |
|
Iterator to first element to be inserted |
|
Iterator to one past last element to be inserted |