News for hackers. Stuff that matters.
Re:C++ for Games: Performance, Allocations and Data Locality by gpderetta on Monday May 30, 2016 @12:19PM (#11801963)
For the majority of iterators doesn't make a difference. For something like std::regexp iterator, which holds a shared pointer to the regexp object, it can make a big difference. Optimizing that copy away is hard as it requires the intimate knowledge of the iterator semantics.

Anyway, using ++i is today idiomatic in C++.

There are no comments on this comment yet.