I was reading Stroustrup's "The C++ Programming Language", where he says that out of two ways to add something to a variable
x = x + a;
and
x += a;
He prefers +=
because it is most likely better implemented. I think he means that it works faster too.
But does it really? If it depends on the compiler and other things, how do I check?