How dare they say ++it is faster than it++
This is NOT true for the iterators of 100% of the STL containers - including the commonly used ones - std::vector
, std::unordered_map
, std::array
, std::list
, std::unordered_set
, std::map
, std::set
, std::queue
and ALL others.