V
Victor Bazarov
Mathias said:Modern compilers generate exactly the same assembler when using vector
iterators or pointers.
No, they don't. It depends on what you ask them, and it depends on the
implementation of the Standard library. I am not going to go into the
details, try different optimization levels with your favourite compiler
and you will see. And keep in mind that maximum optimization is not
always the right choice.
V