Replace container elements.
iterator replace( iterator from, iterator to, std::initializer_list< reference > init);
This function replaces a list of elements at a range of container positions. The behavior is undefined if any elements of the initializer_list 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 |
|
List of elements to replace the range |