[ad_1]
The effect is as you write, but it’s achieved using a slightly different sequence:
The post-increment has highest precedence, so it’s evaluated first. However, its return value (which is processed by further operators) is the value of
iterbefore the increment.Dereference is evaluated next, returning pointer to which the non-incremented value of
iterwas “pointing.”deleteis evaluated last, and the pointer is deleted.
[ad_2]
solved C++ operator precedence