Why iterators got it all wrong - Arno Schödl - Meeting C++ 2016
Next video from Meeting C++ 2016:
Why iterators got it all wrong
by Arno Schödl
February 7-9
March 18-23, Tokyo, Japan
April 17-20, Bristol, UK
May 7-12, Aspen, CO, USA
June 24-29, St. Louis, MO, USA
July 2-5, Folkestone, Kent, UK
By Meeting C++ | Jan 17, 2017 04:49 AM | Tags: ranges iterators intermediate experimental efficiency advanced
Next video from Meeting C++ 2016:
Why iterators got it all wrong
by Arno Schödl
By Andrey Karpov | Jan 29, 2015 11:18 PM | Tags: performance iterators c++ basics
I decided to find out if there is practical sense in writing ++iterator instead of iterator++ when handling iterators.
Is it reasonable to use the prefix increment operator ++it instead of postfix operator it++ for iterators?
by Andrey Karpov
From the article:
I will always write ++it. I did so before but I did it "just in case". Now I can see how useful it is because I regularly launch debug versions. In general, of course, ++it has a very slight influence on the running time. But if I don't make such small optimizations in different places of the code, it will be too late and the profiler won't help me. Bottlenecks will be spread throughout the code.