Skip to main content
4 events
when toggle format what by license comment
Nov 6, 2018 at 23:02 comment added Konrad Rudolph @Calak The reasoning in your link only makes sense for increment values ≠ 1. And std::advance is not more explicit than using ++. The latter is precisely defined and forms part of the iterator contract. It couldn’t be more explicit.
Nov 6, 2018 at 21:25 comment added Calak Two reason: It's more explicit and this
Nov 6, 2018 at 21:04 comment added Ruslan Why use std::advance to simply increment by 1? Any iterator has opertor++.
Nov 6, 2018 at 10:04 history answered Calak CC BY-SA 4.0