Women in Technology

Hear us Roar



Article:
  What Is an Iterator in C++, Part 1
Subject:   error in text
Date:   2010-01-03 23:18:43
From:   Cleiton (Brazil)
Response to: error in text

I agree too, p[5] should point to 11th element, but not move the pointer.


In Bjarne´s [C++ Programming language, 3rd edition, paragraph 19.2.1] : "all operations should have the same efect of pointers" and operator[] over a pointer does not moves it.


translated back to english from my portuguese copy of book