Replaces the element at index and returns the previous element.
Does not change size, shift other elements, or invalidate iterators.
the element previously stored at index.
zero-based element index, less than size.
replacement element.
if index is negative or at least size.