operator []= method

void operator []=(
  1. int index,
  2. int value
)

Sets the int at the specified index to the given value

Implementation

void operator []=(int index, int value) {
  _list[index] = value;
}