Say I have an array in a class and I have to write a member function for that class that places a new value in the middle of the array based on an iterator that is passed in.
For example:
void insert(iterator itr, int value)
If i was allowed to use integers for indexing then I could just do:
array[i] = value;
Is there a way to do this same thing with iterators?