Quote Originally Posted by ninja9578 View Post
I didn't look at the assembly, but the loop itself in 3x faster if calling end over and over again is not done. I don't think the compiler is smart enough to optimize that out, as end() is a function and it's not const.
I still would have expected to be inlined though...