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
May 8-12, Aspen, Colorado, USA
June 6th, Online
June 10, Rome, Italy
June 27-30, Folkestone, UK
July 17-19, Toronto, CA
August 5, virtual event
October 2-6, Aurora, Colorado, USA
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.