Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ STL

Name: Anonymous 2009-08-28 12:46

Is it faster to iterate through stl vector with the [] operator or an iterator?
I would think that the iterator is faster but I'm too lazy to test.

Name: Anonymous 2009-08-28 19:49

>>1
[] operator should be faster because it skips bounds checking and doesn't throw exceptions (but don't take my word for it).

>>2-12
You lose.1

[1] IHBT

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List