it++; // OK : Widely used expression for moving iterator.
it_prev = it-1; // ERROR : What I expected; + - operators never existed
it_prev = std::prev(it) // OK
it_next3 = it+3; // ERROR : also, nothing like this exists
it_next3 = std::next(it,3) // OK
Why does the Iterator class not have + - operators as member functions?
Or std::prev()
as a member function to do this?
it_prev = it.prev() // nothing like this
Is there a special reason for defining the prev
function external to the iterator?