From discussions on stack overflow we have:
++idoes not expect to return a value while
i++might need to return a value.
- A modern compiler, for simple data types (i.e. integer) will treat the two
the same if the context is right e.g. in a
- For an object (e.g. an interator), however,
++iwill be faster than
i++because a compiler cannot optimize away the creation of a temporary object for