Replace container element.
iterator replace( iterator pos, reference const& value);
This function replaces an element at the specified container position. The behavior is undefined if the new element belongs to the existing container.
Iterator to position where element was inserted
Name |
Description |
---|---|
|
Position whose element should be replaced |
|
New value for the position |