I think common style is to use ++iter to help the compiler a bit (i.e. what you do creates an unused temporary copy).