note: one integer dummy variable is used in postfix operation in order to distinguish weather it is a postfix operation or prefix operation. This dummy variable is never used.
(refer prefix / postfix overloading). Difference between postfix and prefix:
– One extra object, _Tmp, is necessary in postfix operation
– One extra “copy constructor” is called because of the below line in postfix operation
iterator _Tmp = *this;
Now, lets see two cases
for( int i = 0; i < 200; i++)
out[ i ] = in[ i ];
In this case, we do not get the performance even if we are using prefix.
Just one extra integer variable is created and no constructor is called.